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 (

	// Conf service config
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init conf.

Types

type BFS

type BFS struct {
	Timeout     xtime.Duration
	MaxFileSize int
	Bucket      string
	URL         string
	Method      string
	Key         string
	Secret      string
	Host        string
}

BFS bfs config

type Config

type Config struct {
	Log        *log.Config
	Databus    *DataSource
	Mysql      *sql.Config
	BFS        *BFS
	HTTPClient *bm.ClientConfig
	Properties *Properties
	Backoff    *netutil.BackoffConfig
	BM         *bm.ServerConfig
}

Config def.

type DataSource

type DataSource struct {
	Labour  *databus.Config
	Account *databus.Config
}

DataSource databus source

type Properties

type Properties struct {
	UploadInterval     xtime.Duration
	AccountIntranetURI string
	MaxRetries         int
	FontFilePath       string
}

Properties def.

Jump to

Keyboard shortcuts

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