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 GetConn(ctx context.Context) (types.IncomingConn, 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 NewConnContext(ctx context.Context, conn types.IncomingConn) 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 GetConn ¶ added in v0.1.11
func GetConn(ctx context.Context) (types.IncomingConn, bool)
GetConn extracts the types.IncomingConnection object, 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.
func NewCacheZonesContext ¶
func NewCacheZonesContext(ctx context.Context, cacheZones map[string]*types.CacheZone) context.Context
NewCacheZonesContext returns a new Context carrying the map with the supplied CacheZones.
func NewConnContext ¶ added in v0.1.11
NewConnContext returns a new Context carrying the supplied incoming connection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.