Documentation ¶ Index ¶ Constants type Config type LierGin func NewGin(routerFunc ...func(router *gin.Engine)) *LierGin func (l *LierGin) SetRouterFunc(routerFunc func(router *gin.Engine)) func (l *LierGin) SetServer(c *Config) func (l *LierGin) Start() error func (l *LierGin) Stop() Constants ¶ View Source const ( LOCALHOST = "localhost" PORT8080 = 8080 ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Addr string Port int ReadTimeout time.Duration WriteTimeout time.Duration MaxHeaderBytes int } type LierGin ¶ type LierGin struct { // contains filtered or unexported fields } func NewGin ¶ func NewGin(routerFunc ...func(router *gin.Engine)) *LierGin func (*LierGin) SetRouterFunc ¶ func (l *LierGin) SetRouterFunc(routerFunc func(router *gin.Engine)) func (*LierGin) SetServer ¶ func (l *LierGin) SetServer(c *Config) func (*LierGin) Start ¶ func (l *LierGin) Start() error func (*LierGin) Stop ¶ func (l *LierGin) Stop() Stop http server stop Source Files ¶ View all Source files gin.go Directories ¶ Show internal Expand all Path Synopsis middleware Click to show internal directories. Click to hide internal directories.