Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(oo ...OptionFunc) (*httprouter.Router, error)
Types ¶
type OptionFunc ¶
OptionFunc definition to allow functional configuration of the router.
func AliveCheck ¶
func AliveCheck(acf v2.LivenessCheckFunc) OptionFunc
AliveCheck option for the router.
func DeflateLevel ¶
func DeflateLevel(level int) OptionFunc
DeflateLevel option for the compression middleware.
func EnableExpVarProfiling ¶
func EnableExpVarProfiling() OptionFunc
EnableExpVarProfiling option for enabling expVar in profiling endpoints.
func Middlewares ¶
func Middlewares(mm ...middleware.Func) OptionFunc
Middlewares option for middlewares.
func ReadyCheck ¶
func ReadyCheck(rcf v2.ReadyCheckFunc) OptionFunc
ReadyCheck option for the router.
func Routes ¶
func Routes(routes ...*v2.Route) OptionFunc
Routes option for providing routes to the router.
Click to show internal directories.
Click to hide internal directories.