Documentation ¶
Index ¶
- type ConfigurationStorage
- func (cs *ConfigurationStorage) CloseUpdateChan()
- func (cs *ConfigurationStorage) GetUpdateChan() chan interface{}
- func (cs *ConfigurationStorage) InsertConfig(key string, value interface{}) error
- func (cs *ConfigurationStorage) InsertKeys(keys *model.JWTKeys) error
- func (cs *ConfigurationStorage) LoadKeys(alg ijwt.TokenSignatureAlgorithm) (*model.JWTKeys, error)
- func (cs *ConfigurationStorage) LoadServerSettings(settings *model.ServerSettings) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationStorage ¶
type ConfigurationStorage struct { Client *clientv3.Client FileStorage *configStorageFile.ConfigurationStorage // contains filtered or unexported fields }
ConfigurationStorage is an etcd-backed storage for server configuration.
func NewConfigurationStorage ¶
func NewConfigurationStorage(settings model.ConfigurationStorageSettings, serverConfigPath string) (*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) InsertConfig ¶
func (cs *ConfigurationStorage) InsertConfig(key string, value interface{}) error
InsertConfig inserts key-value pair to configuration storage.
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 ¶
func (cs *ConfigurationStorage) LoadKeys(alg ijwt.TokenSignatureAlgorithm) (*model.JWTKeys, error)
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.
Click to show internal directories.
Click to hide internal directories.