Documentation ¶
Index ¶
- type CustomProvidersMemDb
- func (mdb *CustomProvidersMemDb) GetProvider(name string) *custom.Provider
- func (mdb *CustomProvidersMemDb) GetRouteConfig(name string, path string) *custom.RouteConfig
- func (mdb *CustomProvidersMemDb) Listen()
- func (mdb *CustomProvidersMemDb) SetProvider(provider *custom.Provider)
- func (mdb *CustomProvidersMemDb) Stop()
- type CustomProvidersStorage
- type MemDb
- type ProviderSettingsMemDb
- type ProviderSettingsStorage
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomProvidersMemDb ¶ added in v1.3.0
type CustomProvidersMemDb struct {
// contains filtered or unexported fields
}
func NewCustomProvidersMemDb ¶ added in v1.3.0
func NewCustomProvidersMemDb(ex CustomProvidersStorage, log *zap.Logger, interval time.Duration) (*CustomProvidersMemDb, error)
func (*CustomProvidersMemDb) GetProvider ¶ added in v1.3.0
func (mdb *CustomProvidersMemDb) GetProvider(name string) *custom.Provider
func (*CustomProvidersMemDb) GetRouteConfig ¶ added in v1.3.0
func (mdb *CustomProvidersMemDb) GetRouteConfig(name string, path string) *custom.RouteConfig
func (*CustomProvidersMemDb) Listen ¶ added in v1.3.0
func (mdb *CustomProvidersMemDb) Listen()
func (*CustomProvidersMemDb) SetProvider ¶ added in v1.3.0
func (mdb *CustomProvidersMemDb) SetProvider(provider *custom.Provider)
func (*CustomProvidersMemDb) Stop ¶ added in v1.3.0
func (mdb *CustomProvidersMemDb) Stop()
type CustomProvidersStorage ¶ added in v1.3.0
type MemDb ¶
type MemDb struct {
// contains filtered or unexported fields
}
func (*MemDb) RemoveKey ¶
func (mdb *MemDb) RemoveKey(k *key.ResponseKey)
func (*MemDb) SetKey ¶
func (mdb *MemDb) SetKey(k *key.ResponseKey)
type ProviderSettingsMemDb ¶ added in v1.0.0
type ProviderSettingsMemDb struct {
// contains filtered or unexported fields
}
func NewProviderSettingsMemDb ¶ added in v1.0.0
func NewProviderSettingsMemDb(ex ProviderSettingsStorage, log *zap.Logger, interval time.Duration) (*ProviderSettingsMemDb, error)
func (*ProviderSettingsMemDb) GetSetting ¶ added in v1.0.0
func (mdb *ProviderSettingsMemDb) GetSetting(k string) *provider.Setting
func (*ProviderSettingsMemDb) Listen ¶ added in v1.0.0
func (mdb *ProviderSettingsMemDb) Listen()
func (*ProviderSettingsMemDb) RemoveSetting ¶ added in v1.0.0
func (mdb *ProviderSettingsMemDb) RemoveSetting(k string)
func (*ProviderSettingsMemDb) SetSetting ¶ added in v1.0.0
func (mdb *ProviderSettingsMemDb) SetSetting(s *provider.Setting)
func (*ProviderSettingsMemDb) Stop ¶ added in v1.0.0
func (mdb *ProviderSettingsMemDb) Stop()
type ProviderSettingsStorage ¶ added in v1.0.0
type Storage ¶
type Storage interface { GetAllKeys() ([]*key.ResponseKey, error) GetUpdatedKeys(updatedAt int64) ([]*key.ResponseKey, error) }
Click to show internal directories.
Click to hide internal directories.