Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { ID primitive.ObjectID `json:"_id" bson:"_id"` Slug string `json:"-" bson:"slug"` Request *RequestInfo `json:"request" bson:"request"` Created time.Time `json:"created" bson:"created"` }
Request request record in db
type RequestInfo ¶
type RequestInfo struct { Method string `json:"method" bson:"method"` Path string `json:"path" bson:"path"` ContentType string `json:"contentType,omitempty" bson:"contentType"` ContentLength int `json:"contentLength,omitempty" bson:"contentLength"` IP string `json:"ip" bson:"ip"` Headers M `json:"headers" bson:"headers"` Query M `json:"query,omitempty" bson:"query"` Data string `json:"data,omitempty" bson:"data"` Form M `json:"form,omitempty" bson:"form"` Body M `json:"body,omitempty" bson:"body"` }
RequestInfo request info
Click to show internal directories.
Click to hide internal directories.