Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeRequest ¶
func EncodeRequest(input *HTTPRequest, options *EncodeOptions) ([]byte, error)
Types ¶
type DecodeOptions ¶
type DecodeOptions struct {
// contains filtered or unexported fields
}
type EncodeOptions ¶
type EncodeOptions struct {
// contains filtered or unexported fields
}
encode and decode options - future placeholder for v1 and v2 options of lambda results
type HTTPProbeCmd ¶
type HTTPProbeCmd struct { Method string `json:"method"` Resource string `json:"resource"` Port int `json:"port"` Protocol string `json:"protocol"` Headers []string `json:"headers"` Body string `json:"body"` BodyFile string `json:"body_file"` Username string `json:"username"` Password string `json:"password"` Crawl bool `json:"crawl"` }
HTTPProbeCmd provides the HTTP probe parameters
type HTTPRequest ¶
type HTTPResponse ¶
type HTTPResponse struct { StatusCode int `json:"statusCode"` Headers []string `json:"headers"` Body string `json:"body"` }
func DecodeResponse ¶
func DecodeResponse(input []byte, options *DecodeOptions) (HTTPResponse, error)
Click to show internal directories.
Click to hide internal directories.