Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(opt *RouterOptions) chi.Router
NewRouter inits a new chi.Router with options
Types ¶
type RouterOptions ¶
type RouterOptions struct {
CORS *cors.Options
SecureHeader *secureheader.Config
Heartbeat string // heartbeat path, set to "false" to disable
DisableLog bool // disable log instrumentation
DisableMet bool // disable met instrumentation
DisableCompress bool // disable compression
}
RouterOptions support custom router configuration.
Click to show internal directories.
Click to hide internal directories.
