Documentation ¶
Index ¶
- func AppendToRequestID(ctx context.Context, suffix []byte) (context.Context, types.RequestID)
- func GetApp(ctx context.Context) (types.App, bool)
- func GetCacheZones(ctx context.Context) (map[string]*types.CacheZone, bool)
- func GetRequestID(ctx context.Context) (types.RequestID, bool)
- func NewAppContext(ctx context.Context, app types.App) context.Context
- func NewCacheZonesContext(ctx context.Context, cacheZones map[string]*types.CacheZone) context.Context
- func NewIDContext(ctx context.Context, reqID types.RequestID) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToRequestID ¶ added in v0.1.9
AppendToRequestID retruns a new Context carrying an request ID that is the once the provided context was carrying with appnded the suplied suffix
func GetCacheZones ¶
GetCacheZones extracts the map of types.CacheZone objects, if present.
func GetRequestID ¶ added in v0.1.9
GetRequestID extracts the types.RequestID object, if present.
func NewAppContext ¶
NewAppContext returns a new Context carrying the supplied App.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.