Documentation
¶
Index ¶
- func DefaultMux() mux.IMux
- func GetServiceName() string
- func GetServiceNameUrl() string
- func NewMux(r *mux.Resource, options ...mux.OptionHandler) (mux.IMux, error)
- func SetCors(opt *mux.Option, m *mux.Mux)
- func SetLimiter(opt *mux.Option, m *mux.Mux)
- func SetServiceName(name string)
- func SetSystem(m *mux.Mux)
- type HealthResponse
- type RouterHandler
- type RouterResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMux ¶
func GetServiceName ¶
func GetServiceName() string
func GetServiceNameUrl ¶
func GetServiceNameUrl() string
func SetServiceName ¶
func SetServiceName(name string)
Types ¶
type HealthResponse ¶
type HealthResponse struct { Version string `json:"version"` BuildVersion string `json:"buildVersion"` BuildDate string `json:"buildDate"` Datetime string `json:"datetime"` Environment string `json:"environment"` Service string `json:"service"` Host string `json:"host"` Status string `json:"status"` }
func NewHealthResponse ¶
func NewHealthResponse() *HealthResponse
type RouterHandler ¶
type RouterHandler func(r *RouterResource)
type RouterResource ¶
Click to show internal directories.
Click to hide internal directories.