contexts

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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