Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONLogger ¶
func TextLogger ¶
Types ¶
type Request ¶
type Request struct { Method string `json:"method"` Path string `json:"path"` Query map[string][]string `json:"query,omitempty"` Proto string `json:"proto"` Host string `json:"host"` Headers map[string][]string `json:"headers,omitempty"` Body string `json:"body,omitempty"` At time.Time `json:"at"` }
type Server ¶
type Server struct { // ResponseCode is the HTTP Status Code sent in response to all requests, // if not set, HTTP 200 is used. ResponseCode int // ResponseBody is the contents sent in response to all requests, if not // set, no response body is used. ResponseBody []byte // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.