Documentation ¶
Index ¶
Constants ¶
View Source
const (
TOKEN_HEADER = "X-App-Token"
)
Variables ¶
This section is empty.
Functions ¶
func GetRequestID ¶
Types ¶
type ContextKey ¶
type ContextKey string
type EndpointMiddlewareFunc ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func New ¶
func New(l logger.Logger) *Middleware
func (*Middleware) AppTokenRequired ¶
func (m *Middleware) AppTokenRequired(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.