contexts

package
v0.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2016 License: GPL-3.0 Imports: 2 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToRequestID added in v0.1.9

func AppendToRequestID(ctx context.Context, suffix []byte) (context.Context, types.RequestID)

AppendToRequestID retruns a new Context carrying an request ID that is the once the provided context was carrying with appnded the suplied suffix

func GetApp

func GetApp(ctx context.Context) (types.App, bool)

GetApp extracts the types.App object, if present.

func GetCacheZones

func GetCacheZones(ctx context.Context) (map[string]*types.CacheZone, bool)

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

func GetRequestID(ctx context.Context) (types.RequestID, bool)

GetRequestID extracts the types.RequestID object, if present.

func NewAppContext

func NewAppContext(ctx context.Context,
	app types.App) context.Context

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

func NewConnContext(ctx context.Context, conn types.IncomingConn) context.Context

NewConnContext returns a new Context carrying the supplied incoming connection.

func NewIDContext added in v0.1.9

func NewIDContext(ctx context.Context, reqID types.RequestID) context.Context

NewIDContext returns a new Context carrying the supplied Request ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL