package
Version:
v1.2.2
Opens a new window with list of versions in this module.
Published: Apr 8, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var ErrMismatch = errors.New("framework ID mismatch")
type Getter interface {
Get(context.Context) (string, error)
}
type LookupFunc func(context.Context) (string, error)
LookupFunc retrieves a framework ID from persistent storage
func (f LookupFunc) Get(c context.Context) (string, error)
type RemoveFunc func(context.Context) error
RemoveFunc removes a framework ID from persistent storage
func (f RemoveFunc) Remove(c context.Context) error
type Remover interface {
Remove(context.Context) error
}
type Setter interface {
Set(context.Context, string) error
}
type Storage interface {
Getter
Setter
Remover
}
type StoreFunc func(context.Context, string) error
StoreFunc stores a framework ID in persistent storage
func (f StoreFunc) Set(c context.Context, id string) error
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.