Documentation
¶
Index ¶
- type ConfigStore
- func (cs *ConfigStore) BindParams(query string, paramsJson string) (string, error)
- func (cs *ConfigStore) GetDataByKey(key string) (interface{}, error)
- func (cs *ConfigStore) GetFucList() ([]map[string]string, error)
- func (cs *ConfigStore) IsSafeInput(input string) bool
- func (cs *ConfigStore) LoadConfigs(dir string) error
- func (cs *ConfigStore) LoadFile(path string) error
- func (cs *ConfigStore) Run()
- func (cs *ConfigStore) RunWithCron(configDir, gitUpdate, spec string, reload bool, triggerCh <-chan struct{})
- func (cs *ConfigStore) RunWithWatch(configDir string, triggerCh <-chan struct{})
- func (cs *ConfigStore) WatchConfigs(dir string, triggerCh <-chan struct{}) error
- type ParamType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigStore ¶
type ConfigStore struct {
YamlDir string
GitUpdate string
Reload bool
Cron *cron.Cron
// contains filtered or unexported fields
}
func GetConfigStore ¶
func GetConfigStore() *ConfigStore
func (*ConfigStore) BindParams ¶
func (cs *ConfigStore) BindParams(query string, paramsJson string) (string, error)
BindParams replaces placeholders in the query with corresponding values from paramsValues. This function directly replaces placeholders without type validation.
func (*ConfigStore) GetDataByKey ¶
func (cs *ConfigStore) GetDataByKey(key string) (interface{}, error)
func (*ConfigStore) GetFucList ¶
func (cs *ConfigStore) GetFucList() ([]map[string]string, error)
func (*ConfigStore) IsSafeInput ¶
func (cs *ConfigStore) IsSafeInput(input string) bool
func (*ConfigStore) LoadConfigs ¶
func (cs *ConfigStore) LoadConfigs(dir string) error
func (*ConfigStore) LoadFile ¶
func (cs *ConfigStore) LoadFile(path string) error
func (*ConfigStore) Run ¶
func (cs *ConfigStore) Run()
func (*ConfigStore) RunWithCron ¶
func (cs *ConfigStore) RunWithCron(configDir, gitUpdate, spec string, reload bool, triggerCh <-chan struct{})
func (*ConfigStore) RunWithWatch ¶
func (cs *ConfigStore) RunWithWatch(configDir string, triggerCh <-chan struct{})
func (*ConfigStore) WatchConfigs ¶
func (cs *ConfigStore) WatchConfigs(dir string, triggerCh <-chan struct{}) error
Click to show internal directories.
Click to hide internal directories.