settings

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Registry uses the strategy pattern as a registry
	Registry = map[string]RegisterFunc{}
)

Functions

This section is empty.

Types

type BundleManager

type BundleManager interface {
	ReadBundle(identifier *proto.Identifier) (*proto.SettingsBundle, error)
	WriteBundle(bundle *proto.SettingsBundle) (*proto.SettingsBundle, error)
	ListBundles(identifier *proto.Identifier) ([]*proto.SettingsBundle, error)
}

BundleManager is a bundle service interface for abstraction of storage implementations

type Manager

type Manager interface {
	BundleManager
	ValueManager
}

Manager combines service interfaces for abstraction of storage implementations

type RegisterFunc

type RegisterFunc func(*config.Config) Manager

RegisterFunc stores store constructors

type ValueManager

type ValueManager interface {
	ReadValue(identifier *proto.Identifier) (*proto.SettingsValue, error)
	WriteValue(value *proto.SettingsValue) (*proto.SettingsValue, error)
	ListValues(identifier *proto.Identifier) ([]*proto.SettingsValue, error)
}

ValueManager is a value service interface for abstraction of storage implementations

Jump to

Keyboard shortcuts

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