Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBasicMiddleware ¶
func AddBasicMiddleware(c *Config)
AddBasicMiddleware is a helper function that augments the passed in Config with some basic middleware components
func BindLoggerMiddleware ¶
BindLoggerMiddleware returns a LoggerMiddleware bound to the passed in requestIdKey, thereby decoupling it from middleware.RequestID
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is the immutable Config file that will be used to construct a server
func (*Config) Middleware ¶
Middleware adds a middleware to the list
func (*Config) NotFound ¶
func (c *Config) NotFound(handler http.HandlerFunc)
NotFound sets the handler for when a resource is not found
Click to show internal directories.
Click to hide internal directories.