factory

package
v1.32.0-coveo.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 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
Package mock_factory is a generated GoMock package.
Package mock_factory is a generated GoMock package.

Jump to

Keyboard shortcuts

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