Documentation ¶
Index ¶
- type ConfigurationStorage
- func (cs *ConfigurationStorage) CloseUpdateChan()
- func (cs *ConfigurationStorage) GetUpdateChan() chan interface{}
- 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
- func (cs *ConfigurationStorage) WriteConfig(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 // 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 ¶
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.
func (*ConfigurationStorage) WriteConfig ¶ added in v1.2.9
func (cs *ConfigurationStorage) WriteConfig(settings model.ServerSettings) error
WriteConfig write new configuration.
Click to show internal directories.
Click to hide internal directories.