Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ConfigSelectHeader is the constant for the head you pass if you need to overload paths/methods
ConfigSelectHeader = "X-GNOCK-CONFIG"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(c *config)
Option is a function that can modify a default config
func WithConfigBasePath ¶
WithConfigBasePath sets the base path to post and look up configurations
func WithLogger ¶
func WithLogger(l logrus.FieldLogger) Option
WithLogger overrides the default logger
Click to show internal directories.
Click to hide internal directories.