conf

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Conf global variable.

Functions

func Init

func Init() (err error)

Init create config instance.

Types

type Config

type Config struct {
	// base
	// log
	Log *log.Config
	// http
	HTTPServer *bm.ServerConfig
	// orm
	ORM *ORM
	// redis
	Redis *redis.Config
	// http client for search
	HTTPSearch *bm.ClientConfig
	// host
	Host *Host
	// job conf
	Job *Job
}

Config struct of conf.

type Host

type Host struct {
	SearchURI  string
	MessageURI string
}

Host .

type Job

type Job struct {
	ExpireProcTick time.Duration
}

Job .

type ORM

type ORM struct {
	Write *orm.Config
	Read  *orm.Config
}

ORM is the orm db config for workflow

Jump to

Keyboard shortcuts

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