initial

package
v3.2.15 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 New

func New() *Initial

New Default returns an Initial instance.

func NewInitial added in v3.1.15

func NewInitial() *Initial

NewInitial ...

func (*Initial) GetEnvironment added in v3.1.1

func (initial *Initial) GetEnvironment(dir, key string) string

GetEnvironment ...

func (*Initial) InitClickHouse

func (initial *Initial) InitClickHouse() *Initial

InitClickHouse load clickhouse && returns an clickhouse instance.

func (*Initial) InitConfig

func (initial *Initial) InitConfig(dirs ...string) *Initial

InitConfig set app config toml files

func (*Initial) InitElasticSearch

func (initial *Initial) InitElasticSearch() *Initial

InitElasticSearch load elasticsearch && returns an elasticsearch instance.

func (*Initial) InitLaunchTime

func (initial *Initial) InitLaunchTime(launchTime time.Time) *Initial

InitLaunchTime set binary start time

func (*Initial) InitMongoDB

func (initial *Initial) InitMongoDB() *Initial

InitMongoDB load mongodb && returns an mongodb instance.

func (*Initial) InitMysql

func (initial *Initial) InitMysql() *Initial

InitMysql load mysql && returns an mysql instance.

func (*Initial) InitPath

func (initial *Initial) InitPath(path string) *Initial

InitPath binary file path

func (*Initial) InitRedis

func (initial *Initial) InitRedis() *Initial

InitRedis load redis && returns an redis instance.

func (*Initial) InitTrace

func (initial *Initial) InitTrace()

InitTrace ...

func (*Initial) Session

func (initial *Initial) Session(name string) *session.Session

Session load session && returns an session instance.

Jump to

Keyboard shortcuts

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