Documentation
¶
Index ¶
- type Initial
- func (initial *Initial) GetEnvironment(dir, key string) string
- func (initial *Initial) InitClickHouse() *Initial
- func (initial *Initial) InitConfig(dirs ...string) *Initial
- func (initial *Initial) InitElasticSearch() *Initial
- func (initial *Initial) InitLaunchTime(launchTime time.Time) *Initial
- func (initial *Initial) InitMongoDB() *Initial
- func (initial *Initial) InitMysql() *Initial
- func (initial *Initial) InitPath(path string) *Initial
- func (initial *Initial) InitRedis() *Initial
- func (initial *Initial) InitTrace()
- func (initial *Initial) Session(name string) *session.Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Initial ¶
type Initial struct {
Path string // 应用程序执行路径
Config *config.Config // 配置文件
Store *proxy.Proxy // 数据库链接
LaunchTime time.Time // 时间设置
}
Initial ...
var Core *Initial
Core 系统
func (*Initial) GetEnvironment ¶ added in v3.1.1
GetEnvironment ...
func (*Initial) InitClickHouse ¶
InitClickHouse load clickhouse && returns an clickhouse instance.
func (*Initial) InitConfig ¶
InitConfig set app config toml files
func (*Initial) InitElasticSearch ¶
InitElasticSearch load elasticsearch && returns an elasticsearch instance.
func (*Initial) InitLaunchTime ¶
InitLaunchTime set binary start time
func (*Initial) InitMongoDB ¶
InitMongoDB load mongodb && returns an mongodb instance.
Click to show internal directories.
Click to hide internal directories.