Documentation ¶
Index ¶
- type Config
- type CorsConfig
- type LoggerConfig
- type RateLimitConfig
- type Server
- func (s *Server) GINRouter(router func(router gin.IRouter))
- func (s *Server) Httprouter(router func(router *httprouter.Router))
- func (s *Server) Router(router func(mux *http.ServeMux))
- func (s *Server) Run(ctx context.Context) error
- func (s *Server) Shutdown()
- func (s *Server) WithRegistry(reg registry.Registry)
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { basic.Config TLS TLSConfig Cors CorsConfig Logger LoggerConfig RateLimit RateLimitConfig }
type CorsConfig ¶
type CorsConfig struct {
Enable bool
}
type LoggerConfig ¶
type LoggerConfig struct {
Enable bool
}
type RateLimitConfig ¶
type RateLimitConfig struct {
RateLimit int
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Httprouter ¶
func (s *Server) Httprouter(router func(router *httprouter.Router))
func (*Server) WithRegistry ¶
Click to show internal directories.
Click to hide internal directories.