Documentation
¶
Overview ¶
Package context manages the insertion of Request-specific information (which cache to use, etc.) into proxied HTTP requests
Index ¶
- func HealthCheckFlag(ctx context.Context) bool
- func Hops(ctx context.Context) (current, max int)
- func Resources(ctx context.Context) interface{}
- func WithHealthCheckFlag(ctx context.Context, isHealthCheck bool) context.Context
- func WithHops(ctx context.Context, current, max int) context.Context
- func WithResources(ctx context.Context, r interface{}) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheckFlag ¶
HealthCheckFlag returns true if the request is a health check request
func WithHealthCheckFlag ¶
WithHealthCheckFlag returns a copy of the provided context that also includes a bit indicating the request is performing a health check
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.