frameworkid

package
v1.2.0-origin Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMismatch = errors.New("framework ID mismatch")

Functions

This section is empty.

Types

type Getter

type Getter interface {
	Get(context.Context) (string, error)
}

type LookupFunc

type LookupFunc func(context.Context) (string, error)

LookupFunc retrieves a framework ID from persistent storage

func (LookupFunc) Get

func (f LookupFunc) Get(c context.Context) (string, error)

type RemoveFunc

type RemoveFunc func(context.Context) error

RemoveFunc removes a framework ID from persistent storage

func (RemoveFunc) Remove

func (f RemoveFunc) Remove(c context.Context) error

type Remover

type Remover interface {
	Remove(context.Context) error
}

type Setter

type Setter interface {
	Set(context.Context, string) error
}

type Storage

type Storage interface {
	Getter
	Setter
	Remover
}

type StoreFunc

type StoreFunc func(context.Context, string) error

StoreFunc stores a framework ID in persistent storage

func (StoreFunc) Set

func (f StoreFunc) Set(c context.Context, id string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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