Versions in this module Expand all Collapse all v0 v0.0.2 Jul 12, 2021 Changes in this version + func NewEngine(c RestConf) *engine + func UseRoutesMiddleWares(m ...gin.HandlerFunc) func(f *featuredRoutes) + type ConsulConf struct + Host string + Key string + Tags []string + type Middlerware gin.HandlerFunc + type RestConf struct + CertFile string + Consul ConsulConf + CpuThreshold int64 + Host string + KeyFile string + MaxBytes int64 + MaxConns int + Mode string + Port int + Timeout int64 + Verbose bool + type Route struct + Handler gin.HandlerFunc + Method string + Path string + type RouteOption func(r *featuredRoutes) + type RunOption func(*Server) + type Server struct + func MustNewServer(c RestConf, opts ...RunOption) *Server + func NewServer(c RestConf, opts ...RunOption) (*Server, error) + func (s *Server) AddRoute(urlPrefix string, r Route, opts ...RouteOption) + func (s *Server) AddRoutes(UrlPrefix string, rs []Route, opts ...RouteOption) + func (s *Server) Start() + func (s *Server) Use(m ...gin.HandlerFunc)