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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf global
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init conf

Types

type Config

type Config struct {
	Tracer       *trace.Config
	History      *History
	BM           *bm.ServerConfig
	RPCClient2   *RPC
	Toview       *Redis
	Redis        *Redis
	Xlog         *xlog.Config
	Info         *HBaseConfig
	DataBus      *Databus
	Auth         *auth.Config
	Verify       *verify.Config
	Collector    *infoc.Config
	Ecode        *ecode.Config
	RPCServer    *rpc.ServerConfig
	GRPC         *warden.ServerConfig
	ThirdBusines *ThirdBusines
	Report       *databus.Config
}

Config service conf

type Databus

type Databus struct {
	PlayPro    *databus.Config
	Merge      *databus.Config
	Experience *databus.Config
	Pub        *databus.Config
}

Databus .

type HBaseConfig

type HBaseConfig struct {
	*hbase.Config
	WriteTimeout xtime.Duration
	ReadTimeout  xtime.Duration
}

HBaseConfig ...

type History

type History struct {
	Max         int
	Total       int
	Cache       int
	Page        int
	Size        int
	Ticker      xtime.Duration
	Pub         bool
	ConsumeSize int

	Migration bool
	Rate      int64
	Mids      []int64
}

History history.

type RPC

type RPC struct {
	Archive  *rpc.ClientConfig
	Favorite *rpc.ClientConfig
	History  *warden.ClientConfig
}

RPC rpc.

type Redis

type Redis struct {
	*redis.Config
	Expire xtime.Duration
}

Redis redis.

type ThirdBusines

type ThirdBusines struct {
	BangumiV2URL string
	SeasonURL    string
	HTTPClient   *bm.ClientConfig
}

ThirdBusines Bangumi favorite.

Jump to

Keyboard shortcuts

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