Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnvironmentMiddleware = func(ctx context.Context, c *app.RequestContext) { if env := c.Request.Header.Get(consts.EnvHeader); env != "" { if lane := c.Request.Header.Get(consts.LaneHeader); lane != "" { env = fmt.Sprintf("%s_%s", env, lane) } ctx = metadata.AppendToOutgoingContext(ctx, consts.EnvHeader, env) } c.Next(ctx) } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.