Documentation ¶
Index ¶
- Constants
- func GetTraceId(ctx context.Context) string
- func MandatoryHeaders(next http.Handler) http.Handler
- func ParamValidate(validator *util.Validator, rulesFunc RulesFunc) func(next http.Handler) http.Handler
- func Recoverer(next http.Handler) http.Handler
- func RequestLogger(next http.Handler) http.Handler
- func SetMandatoryHeaders(req *http.Request, ctx context.Context)
- func TraceId(next http.Handler) http.Handler
- type LogRecord
- type RulesFunc
Constants ¶
View Source
const RequestParams = "request_params"
Variables ¶
This section is empty.
Functions ¶
func GetTraceId ¶
func ParamValidate ¶
Types ¶
type LogRecord ¶
type LogRecord struct { http.ResponseWriter // contains filtered or unexported fields }
func (*LogRecord) WriteHeader ¶
Click to show internal directories.
Click to hide internal directories.