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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type BerserkerAPI

type BerserkerAPI struct {
	Name string
	URL  string
}

BerserkerAPI .

type BerserkerConfig

type BerserkerConfig struct {
	Keys []*BerserkerKey
	API  []*BerserkerAPI
}

BerserkerConfig .

type BerserkerKey

type BerserkerKey struct {
	Owner  string
	AppKey string
	Secret string
}

BerserkerKey .

type Config

type Config struct {
	Log          *log.Config
	BM           *bm.ServerConfig
	Verify       *verify.Config
	Tracer       *trace.Config
	Redis        *redis.Config
	BfRedis      *redis.Config
	MySQL        *sql.Config
	OfflineMySQL *sql.Config
	CmsMySQL     *sql.Config
	Ecode        *ecode.Config
	Berserker    *BerserkerConfig
	Job          *Jobs
	GRPCClient   map[string]*GRPCConfig
}

Config .

type GRPCConfig

type GRPCConfig struct {
	WardenConf *warden.ClientConfig
	Addr       string
}

GRPCConfig .

type JobConfig

type JobConfig struct {
	JobName  string
	Schedule string
	Input    string
	Output   string
}

JobConfig .

type Jobs

type Jobs struct {
	ForwardIndex *JobConfig
	BloomFilter  *JobConfig
}

Jobs .

Jump to

Keyboard shortcuts

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