Documentation
¶
Index ¶
- func File(cwd ports.CWD, status int, filePath, contentType string) ports.ResponseProvider
- func Header(header, want string) ports.RequestMatcher
- func HeaderPresent(header string) ports.RequestMatcher
- func JSFile(cwd ports.CWD, status int, filePath string) ports.ResponseProvider
- func Json(status int, inlineJson string) ports.ResponseProvider
- func JsonPath(path string, want any) (ports.RequestMatcher, error)
- func Method(method string) ports.RequestMatcher
- func ParseMatcher(filters []grammar.Call) (ports.RequestMatcher, error)
- func ParseResponseProvider(call *grammar.Call, cwd ports.CWD) (ports.ResponseProvider, error)
- func Path(path string) ports.RequestMatcher
- func PathPattern(pattern string) (ports.RequestMatcher, error)
- func Query(key, value string) ports.RequestMatcher
- func QueryPattern(key, pattern string) (ports.RequestMatcher, error)
- type RequestMatcherChain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Header ¶
func Header(header, want string) ports.RequestMatcher
func HeaderPresent ¶
func HeaderPresent(header string) ports.RequestMatcher
func Method ¶
func Method(method string) ports.RequestMatcher
func ParseMatcher ¶
func ParseMatcher(filters []grammar.Call) (ports.RequestMatcher, error)
func ParseResponseProvider ¶
func Path ¶
func Path(path string) ports.RequestMatcher
func PathPattern ¶
func PathPattern(pattern string) (ports.RequestMatcher, error)
func Query ¶
func Query(key, value string) ports.RequestMatcher
func QueryPattern ¶
func QueryPattern(key, pattern string) (ports.RequestMatcher, error)
Types ¶
type RequestMatcherChain ¶
type RequestMatcherChain []ports.RequestMatcher
func (RequestMatcherChain) Matches ¶
func (r RequestMatcherChain) Matches(req *domain.IncomingRequest) bool
Click to show internal directories.
Click to hide internal directories.