Documentation
¶
Index ¶
- func AutoBindEnv(viper *viper.Viper, iface interface{})
- func NewLogger(debug bool) (*zap.Logger, error)
- func NewS3(cfg *S3Config) (*s3.Client, error)
- func ToHTTPHandler(handle httprouter.Handle) http.Handler
- func ToHTTPRouterHandle(h Handler, l *zap.Logger) httprouter.Handle
- type AgentFilterHandler
- type Handler
- type Input
- type LoggingHandler
- type S3Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoBindEnv ¶
TODO: this won't be needed after https://github.com/spf13/viper/pull/1429 adapted from https://github.com/spf13/viper/issues/188#issuecomment-399884438
func ToHTTPHandler ¶
func ToHTTPHandler(handle httprouter.Handle) http.Handler
func ToHTTPRouterHandle ¶
func ToHTTPRouterHandle(h Handler, l *zap.Logger) httprouter.Handle
Types ¶
type AgentFilterHandler ¶
type AgentFilterHandler struct {
// contains filtered or unexported fields
}
type Handler ¶
func AgentFilterMiddleware ¶
func LoggingMiddleware ¶
func StaticStatus ¶
func StaticStatusError ¶
func StatusMiddleware ¶
type Input ¶
type Input struct { Request *http.Request Response http.ResponseWriter Params httprouter.Params Logger *zap.Logger }
type LoggingHandler ¶
type LoggingHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.