Documentation
¶
Index ¶
Constants ¶
View Source
const Each = "$each"
View Source
const Field = "$field"
View Source
const To = "$to"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MatchBuilder ¶
var RequestMatchBuilder MatchBuilder = func(request *http.Request, flow *mapping.Flow, body map[string]any) Matcher { return &RequestMatcher{request: request, flow: flow, body: body} }
type RequestMatcher ¶
type RequestMatcher struct {
// contains filtered or unexported fields
}
func (*RequestMatcher) IsMatch ¶
func (m *RequestMatcher) IsMatch() bool
func (*RequestMatcher) Match ¶
func (m *RequestMatcher) Match()
type RequestResponder ¶
type RequestResponder struct {
// contains filtered or unexported fields
}
func (RequestResponder) Respond ¶
func (r RequestResponder) Respond()
type ResponseBuilder ¶
type ResponseBuilder func( request *http.Request, flow *mapping.Flow, body map[string]any, rw http.ResponseWriter, mainCtx context.Context, client HTTPClient, ) Responder
var RequestResponseBuilder ResponseBuilder = func( request *http.Request, flow *mapping.Flow, body map[string]any, rw http.ResponseWriter, mainCtx context.Context, httpClient HTTPClient, ) Responder { return RequestResponder{ request: request, flow: flow, body: body, rw: rw, mainCtx: mainCtx, httpClient: httpClient, replacer: replacer.NewReplacer(body, request.Header), } }
Click to show internal directories.
Click to hide internal directories.