Documentation
¶
Index ¶
- func NewHeaderCheck(hctx phttp.HttpHandlerContext, secretKey string) func(next http.Handler) http.Handler
- func NewHttpRequestLogger(logger *log.Logger) func(next http.Handler) http.Handler
- func NewJWT(hctx phttp.HttpHandlerContext, signKey []byte) func(next http.Handler) http.Handler
- type Header
- type HttpRequestLoggerMiddleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHeaderCheck ¶ added in v2.7.0
func NewHttpRequestLogger ¶ added in v2.7.0
Types ¶
type Header ¶ added in v2.7.0
type Header struct { XKtbsRequestID string `valid:"uuidv4,required"` XKtbsApiVersion string `valid:"semver,required"` XKtbsClientVersion string `valid:"semver,required"` XKtbsPlatformName string `valid:"required"` XKtbsClientName string `valid:"required"` // Optional XKtbsSignature string `valid:"optional"` XKtbsTime string `valid:"int,optional"` Authorization string `valid:"optional"` }
type HttpRequestLoggerMiddleware ¶
type HttpRequestLoggerMiddleware struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.