Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheLocal *cache.Cache
View Source
var DB *gorm.DB
View Source
var K8sClient *kubernetes.Clientset
View Source
var LogFileDir = Conf.LogDir
View Source
var RedisGO *redis.Client
Functions ¶
Types ¶
type Config ¶
type Config struct { LogDir string `yaml:"log_dir"` LogName LogName `yaml:"log_name"` Mysql MysqlConfig `yaml:"mysql"` Redis RedisConfig `yaml:"redis"` TokenCache string `yaml:"token_cache"` }
var Conf Config
type MysqlConfig ¶
type Option ¶
type Option func(*Config)
func AddMysqlDns ¶
func AddMysqlPass ¶
func AddMysqlUserName ¶
type RedisConfig ¶
Click to show internal directories.
Click to hide internal directories.