Documentation ¶
Index ¶
- type Router
- func (r *Router) EnableCORS() *Router
- func (r *Router) EnableCompress() *Router
- func (r *Router) EnableLogger() *Router
- func (r *Router) EnableRealIP() *Router
- func (r *Router) EnableRecover() *Router
- func (r *Router) EnableRequestID() *Router
- func (r *Router) EnableTimeout() *Router
- func (r *Router) GetRouter(mailer mailerLib.IMailer, broker brokerLib.IBroker) *chi.Mux
- func (r *Router) RouterHealth(mailer mailerLib.IMailer, broker brokerLib.IBroker) *Router
- func (r *Router) RouterMetrics() *Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(config *configUtil.Server) *Router
func (*Router) EnableCORS ¶
func (*Router) EnableCompress ¶
func (*Router) EnableLogger ¶
func (*Router) EnableRealIP ¶
func (*Router) EnableRecover ¶
func (*Router) EnableRequestID ¶
func (*Router) EnableTimeout ¶
func (*Router) RouterHealth ¶
func (*Router) RouterMetrics ¶
Click to show internal directories.
Click to hide internal directories.