schema

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type M

type M map[string]interface{}

M object map

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL