Documentation
¶
Index ¶
Constants ¶
View Source
const ( QueryParam HTTPElementType = iota PathParam Header BodyAttribute RequestString Error QueryParamStr string = "query" PathParamStr string = "path" HeaderStr string = "header" BodyAttributeStr string = "body" RequestStringStr string = "request" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecPayload ¶
type ExecPayload interface {
GetHeader() map[string][]string
GetPayload() []byte
GetPayloadMap() map[string]interface{}
SetHeaderKV(k string, v []string)
}
func NewExecPayload ¶
func NewExecPayload(payload []byte, header map[string][]string, payloadMap map[string]interface{}) ExecPayload
type HTTPElement ¶
type HTTPElement interface {
GetName() string
GetType() HTTPElementType
SetTransformer(transformer func(interface{}) (interface{}, error))
Transformer(interface{}) (interface{}, error)
IsTransformerPresent() bool
}
func NewHTTPElement ¶
func NewHTTPElement(httpElemType HTTPElementType, name string) HTTPElement
type HTTPElementType ¶
type HTTPElementType int
func ExtractHTTPElement ¶
func ExtractHTTPElement(s string) (HTTPElementType, error)
Click to show internal directories.
Click to hide internal directories.