Documentation ¶
Index ¶
Constants ¶
View Source
const (
GIN = "gin"
)
Variables ¶
View Source
var GetTraceId func(c context.Context, wrap ...string) string
GetTraceId customize func to get request trace id
View Source
var Handler http.Handler
Handler http handler
View Source
var Server http.Server
Server http server
Functions ¶
This section is empty.
Types ¶
type Srv ¶
type Srv struct { // non-zero attr Name string `json:",omitempty"` Tag string `json:",omitempty"` Author string `json:",omitempty"` Host string `json:",omitempty"` IP string `json:",omitempty"` FrameWork string `json:",omitempty"` Listen string `json:",omitempty"` Port string `json:",omitempty"` BaseURL string `json:",omitempty"` // zero val is ok Release bool Trace bool Pprof bool Cors bool Static string HtmlGlob string }
Srv config
Click to show internal directories.
Click to hide internal directories.