Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Code ¶
func Code(response CapturedResponse) []interface{}
func RequestBody ¶
func ResponseBody ¶
func ResponseBody(response CapturedResponse) []interface{}
Types ¶
type Option ¶
type Option func(h *handler)
Option provides a single configuration option for a bookkeeping handler
func WithRequests ¶
func WithRequests(requestFuncs ...RequestFunc) Option
WithRequests take a one or many RequestFuncs to build an Option for logging key value pairs from the RequestFun
func WithResponses ¶
func WithResponses(responseFuncs ...ResponseFunc) Option
WithResponses take a one or many ResponseFunc to build an Option for logging key value pairs from the ResponseFunc
type RequestFunc ¶
RequestFunc takes the request and returns key value pairs from the request
func RequestHeaders ¶
func RequestHeaders(headers ...string) RequestFunc
func RequestHeadersWithPrefix ¶
func RequestHeadersWithPrefix(headers ...string) RequestFunc
type ResponseFunc ¶
type ResponseFunc func(response CapturedResponse) []interface{}
ResponseFunc takes the ResponseWriter and returns key value pairs from the request
func ResponseHeaders ¶
func ResponseHeaders(headers ...string) ResponseFunc
func ResponseHeadersWithPrefix ¶
func ResponseHeadersWithPrefix(headers ...string) ResponseFunc
Click to show internal directories.
Click to hide internal directories.