Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enable bool StorageDir string Repository []*Repository }
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 ¶
RegisterFlags is used to register flags
type Repository ¶
type Service ¶
func New ¶
func New(cfg *Config, logger logger.Logger, registerer prometheus.Registerer) (*Service, error)
New is used to init service
func (*Service) Synchronize ¶
Click to show internal directories.
Click to hide internal directories.