Documentation ¶
Index ¶
- func GetRevisionKey(prefix string) string
- func New(cfg *Config, logger logger.Logger, registerer prometheus.Registerer) (pluginregistry.StoragePlugin, error)
- type Config
- type Plugin
- func (s *Plugin) Delete(ctx context.Context, key string) error
- func (s *Plugin) GetAnnouncement() chan struct{}
- func (s *Plugin) List(ctx context.Context) (map[string]string, error)
- func (s *Plugin) Name() string
- func (s *Plugin) Set(ctx context.Context, key string, val string) error
- func (s *Plugin) Start(ctx context.Context, cancelFunc context.CancelFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRevisionKey ¶
GetRevisionKey is used to get revision key
func New ¶
func New(cfg *Config, logger logger.Logger, registerer prometheus.Registerer) (pluginregistry.StoragePlugin, error)
New is used to init service
Types ¶
type Config ¶
Config defines the config structure
func (*Config) IsEnabled ¶
IsEnabled is used to return whether the current component is enabled This attribute is required in pluggable components
func (*Config) RegisterFlagsWithPrefix ¶
RegisterFlagsWithPrefix is used to register flags
type Plugin ¶
Plugin defines a storage plugin with Redis as the backend
func (*Plugin) GetAnnouncement ¶
func (s *Plugin) GetAnnouncement() chan struct{}
GetAnnouncement is used to get announcement
Click to show internal directories.
Click to hide internal directories.