Documentation
¶
Index ¶
- Constants
- func AccessLogMiddleware(next http.Handler, logger *mylogger.MyLogger, ...) http.Handler
- func AddAPIName(handler http.Handler, apiName string) http.Handler
- func AddReqID(next http.Handler) http.Handler
- func Context(ctx context.Context, next http.Handler) http.Handler
- func Panic(next http.Handler, logger *mylogger.MyLogger) http.Handler
- func SetupCORS(next http.HandlerFunc, addrOrigin string, schema string) http.Handler
- type WriterWithStatus
Constants ¶
View Source
const APINameV1 = "/api/v1"
Variables ¶
This section is empty.
Functions ¶
func AccessLogMiddleware ¶
Types ¶
type WriterWithStatus ¶
type WriterWithStatus struct { http.ResponseWriter Status int }
func (*WriterWithStatus) WriteHeader ¶
func (w *WriterWithStatus) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.