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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConfPath local config path
	ConfPath string
	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init conf

Types

type Config

type Config struct {
	// base
	// channal len
	ChanSize int64
	// log
	Log *log.Config
	// http
	BM *bm.ServerConfig
	// identify
	App *bm.App
	// tracer
	Tracer *trace.Config
	// tick load pgc
	Tick time.Duration
	// orm
	DB *DB
	// http client of search
	HTTPClient *HTTPClient
	// host
	Host *Host
	// redis
	Redis *Redis
}

Config str

type DB

type DB struct {
	Main  *sql.Config
	Slave *sql.Config
}

DB def db struct

type HTTPClient

type HTTPClient struct {
	Read *bm.ClientConfig
}

HTTPClient http client

type Host

type Host struct {
	AccountURI string
	ArchiveURI string
	UperURI    string
}

Host http host

type Redis

type Redis struct {
	*redis.Config
	UpRatingExpire time.Duration
}

Redis .

Jump to

Keyboard shortcuts

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