Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dump ¶
func Dump() gin.HandlerFunc
func DumpWithOptions ¶
func DumpWithOptions(options Options) gin.HandlerFunc
Types ¶
type DumpData ¶
type DumpData struct { Request DumpRequest Response DumpResponse }
func (*DumpData) ToJSONFormattedString ¶ added in v0.1.0
func (*DumpData) ToJSONString ¶ added in v0.0.4
type DumpRequest ¶
type DumpResponse ¶
type Options ¶
type Options struct { // Dump request body ShowReqBody bool // Dump response body ShowRespBody bool // Dump request headers ShowReqHeaders bool // Dump response headers ShowRespHeaders bool // Dump response status ShowRespStatus bool // DumpFunc is a function that will be called with the dump data DumpFunc func(dumpStr DumpData) // Dump request path ShowReqPath bool // Dump request method ShowReqMethod bool // Dump request query ShowReqQuery bool }
Click to show internal directories.
Click to hide internal directories.