factory

package
v0.0.0-...-0dcd02c Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SaveableOption

type SaveableOption interface {
	// AddSaveable is an option that adds a given saveable as one that should be saved
	// under the given name
	AddSaveable(name string, saveable statemanager.Saveable) statemanager.Option
}

SaveableOption factory wraps the global statemanager.AddSaveable method, which creates a new saveable state manager option

func NewSaveableOption

func NewSaveableOption() SaveableOption

NewSaveableOption creates a new SaveableOption factory

type StateManager

type StateManager interface {
	// NewStateManager creates a new state manager
	NewStateManager(cfg *config.Config, options ...statemanager.Option) (statemanager.StateManager, error)
}

StateManager factory wraps the global statemenager.NewStateManager method, which creates a new state manager object

func NewStateManager

func NewStateManager() StateManager

NewStateManager creates a new StateManager factory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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