app

package
v0.0.0-...-af1d8da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2025 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

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

type ParamType

type ParamType struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL