Documentation ¶
Index ¶
Constants ¶
View Source
const ( TeamAlerting = "alerting" TeamAuth = "auth" TeamCore = "core" )
Variables ¶
This section is empty.
Functions ¶
func SetRequestMetaData ¶
func SetRequestMetaData(rmd RequestMetaData) web.Handler
SetRequestMetaData returns an `web.Handler` that overrides the request metadata with the provided param.
func SetupRequestMetadata ¶
func SetupRequestMetadata() web.Middleware
SetupRequestMetadata injects defaul request metadata values on the request context.
Types ¶
type RequestMetaData ¶
type RequestMetaData struct {
Team string
}
func GetRequestMetaData ¶
func GetRequestMetaData(ctx context.Context) *RequestMetaData
GetRequestMetaData returns the request metadata for the context. if request metadata is missing it will return the default values.
Click to show internal directories.
Click to hide internal directories.