Documentation
¶
Index ¶
- func Cache(next http.Handler) http.Handler
- func Database(next http.Handler) http.Handler
- func GetCache(ctx context.Context) *redis.Client
- func GetDB(ctx context.Context) *postgres.Client
- func GetLogger(ctx context.Context) logrus.FieldLogger
- func Logger(next http.Handler) http.Handler
- func Profiler() http.Handler
- func Recoverer(render Renderer) func(next http.Handler) http.Handler
- func RequestLogger(next http.Handler) http.Handler
- type Renderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Renderer ¶
type Renderer func(w http.ResponseWriter, v interface{}, code int)
Click to show internal directories.
Click to hide internal directories.