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 global variable.
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init create config instance.

Types

type Config

type Config struct {
	Redis                *Redis
	Tidb                 *tidb.Config
	ItemTidb             *tidb.Config
	Log                  *log.Config
	Databus              *Databus
	Thumbup              *Thumbup
	Memcache             *Memcache
	StatMerge            *StatMerge
	Merge                *pipeline.Config
	LikeDatabusutil      *databusutil.Config
	ItemLikesDatabusutil *databusutil.Config
	UserLikesDatabusutil *databusutil.Config
}

Config .

type Databus

type Databus struct {
	Stat      *databus.Config
	Like      *databus.Config
	ItemLikes *databus.Config
	UserLikes *databus.Config
}

Databus .

type Memcache

type Memcache struct {
	*memcache.Config
	StatsExpire xtime.Duration
}

Memcache .

type Redis

type Redis struct {
	*redis.Config
	StatsExpire     xtime.Duration
	UserLikesExpire xtime.Duration
	ItemLikesExpire xtime.Duration
}

Redis .

type StatMerge

type StatMerge struct {
	Business string
	Target   int64
	Sources  []int64
}

StatMerge .

type Thumbup

type Thumbup struct {
}

Thumbup .

Jump to

Keyboard shortcuts

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