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 export config var
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init int config

Types

type BNJ

type BNJ struct {
	Aid          int64
	BnjCounter   *BnjCounter
	BnjLiveDanmu *BnjLiveDanmu
}

BNJ .

type BNJVideo

type BNJVideo struct {
	Cid      int64
	Duration float64
}

BNJVideo .

type Bfs

type Bfs struct {
	Client *bfs.Config
	Dm     string
}

Bfs .

type BnjCounter

type BnjCounter struct {
	SubAids []int64
}

BnjCounter .

type BnjLiveDanmu

type BnjLiveDanmu struct {
	RoomID      int64
	Start       string
	IgnoreRate  int64
	Level       int32
	IgnoreBegin time.Duration
	IgnoreEnd   time.Duration
}

BnjLiveDanmu .

type Config

type Config struct {
	// base
	// log
	Xlog   *log.Config
	Infoc2 *infoc.Config
	// tracer
	Tracer *trace.Config
	// http
	HTTPServer *bm.ServerConfig
	// database
	DB *DB
	// redis
	Redis *Redis
	// memcache
	Memcache *Memcache
	// Subtitle Cache
	SubtitleMemcache *Memcache
	DMMemcache       *Memcache
	// archive rpc client
	ArchiveRPC *rpc.ClientConfig
	// seq-server rpc client
	SeqRPC *rpc.ClientConfig
	Seq    *Seq
	// databus config
	Databus *Databus
	// dm list realname
	Realname   map[string]int64
	HTTPClient *bm.ClientConfig
	Host       *Host
	BFSClient  *bm.ClientConfig
	// client
	FliterRPC *warden.ClientConfig
	// MaskCate
	MaskCate *MaskCate
	// Bfs
	Bfs *Bfs
	// cache routine size
	RoutineSize int
	// bnj
	BNJ *BNJ
	// task config
	TaskConf *TaskConf
}

Config danmaku config

type DB

type DB struct {
	DMReader      *sql.Config
	DMWriter      *sql.Config
	BiliDMWriter  *sql.Config
	QueryPageSize int32
}

DB mysql config struct

type Databus

type Databus struct {
	IndexCsmr         *databus.Config
	SubjectCsmr       *databus.Config
	ActionCsmr        *databus.Config
	ReportCsmr        *databus.Config
	VideoupCsmr       *databus.Config
	SubtitleAuditCsmr *databus.Config
	BnjCsmr           *databus.Config
}

Databus databus config

type Host

type Host struct {
	Videoup   string
	Mask      string
	DataRank  string
	MerakHost string
	APILive   string
}

Host hosts used in dm admin

type MaskCate

type MaskCate struct {
	Tids     []int64
	Interval time.Duration
	Limit    int
}

MaskCate .

type Memcache

type Memcache struct {
	*memcache.Config
	Expire time.Duration
}

Memcache dm memcache

type Redis

type Redis struct {
	DM *struct {
		*redis.Config
		Expire time.Duration
	}
	DMRct *struct {
		*redis.Config
		Expire time.Duration
	}
	DMSeg *struct {
		*redis.Config
		Expire time.Duration
	}
}

Redis dm redis

type Seq

type Seq struct {
	BusinessID int64
	Token      string
}

Seq Conf

type TaskConf

type TaskConf struct {
	DelInterval  time.Duration
	ResInterval  time.Duration
	ResFieldLen  int
	DelNum       int
	DelLimit     int64
	MsgCC        []string
	MsgPublicKey string
}

TaskConf .

Jump to

Keyboard shortcuts

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