Documentation
¶
Index ¶
- Constants
- type Options
- type Server
- func (h *Server) Register(method string, route string, handler gin.HandlerFunc)
- func (h *Server) RegisterGeneric(method string, route string, handler http.Handler)
- func (h *Server) RegisterGenericWithGroup(name string, method string, route string, handler http.Handler)
- func (h *Server) RegisterWithGroup(name string, method string, route string, handler gin.HandlerFunc)
- func (h *Server) Run(runCh chan error)
Constants ¶
View Source
const ( ApplicationRouteGroup = "application" MonitoringRouteGroup = "monitoring" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Environment string `json:"environment,omitempty" yaml:"environment,omitempty"`
Version string `json:"version,omitempty" yaml:"version,omitempty"`
Addresses server.Addresses `json:"addresses,omitempty" yaml:"addresses,omitempty"`
}
type Server ¶
type Server struct {
Options
// contains filtered or unexported fields
}
func (*Server) Register ¶
func (h *Server) Register(method string, route string, handler gin.HandlerFunc)
func (*Server) RegisterGeneric ¶
func (*Server) RegisterGenericWithGroup ¶
func (*Server) RegisterWithGroup ¶
Click to show internal directories.
Click to hide internal directories.