etcd

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationStorage

type ConfigurationStorage struct {
	Client *clientv3.Client
	// contains filtered or unexported fields
}

ConfigurationStorage is an etcd-backed storage for server configuration.

func NewConfigurationStorage

func NewConfigurationStorage(config model.ConfigStorageSettings) (*ConfigurationStorage, error)

NewConfigurationStorage creates new etcd-backed server config storage.

func (*ConfigurationStorage) CloseUpdateChan

func (cs *ConfigurationStorage) CloseUpdateChan()

CloseUpdateChan implements ConfigurationStorage interface.

func (*ConfigurationStorage) GetUpdateChan

func (cs *ConfigurationStorage) GetUpdateChan() chan interface{}

GetUpdateChan implements ConfigurationStorage interface.

func (*ConfigurationStorage) InsertKeys

func (cs *ConfigurationStorage) InsertKeys(keys *model.JWTKeys) error

InsertKeys inserts new public and private keys into the key storage.

func (*ConfigurationStorage) LoadKeys

LoadKeys loads public and private keys from the key storage.

func (*ConfigurationStorage) LoadServerSettings

func (cs *ConfigurationStorage) LoadServerSettings(settings *model.ServerSettings) error

LoadServerSettings loads server configuration from configuration storage.

func (*ConfigurationStorage) WriteConfig added in v1.2.9

func (cs *ConfigurationStorage) WriteConfig(settings model.ServerSettings) error

WriteConfig write new configuration.

Jump to

Keyboard shortcuts

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