frameworkid

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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