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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf config export var
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init int config

Types

type Bfs

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

Bfs .

type BroadcastLimit

type BroadcastLimit struct {
	Limit    int
	Interval int
}

BroadcastLimit broadcast limit

type Config

type Config struct {
	// ecode
	Ecode *ecode.Config
	// log
	Xlog   *log.Config
	Infoc2 *infoc.Config
	// tracer
	Tracer *trace.Config
	Auth   *auth.Config
	Verify *verify.Config
	// database
	DB *DB
	// redis
	Redis *Redis
	// memcache
	Memcache *Memcache
	// localcache
	Localcache *Localcache
	// host
	Host *Host
	// http
	HTTPServer *bm.ServerConfig
	// http client
	HTTPCli *bm.ClientConfig
	// rpc client
	ArchiveRPC *rpc.ClientConfig
	// account rpc client
	AccountRPC *warden.ClientConfig
	// assist rpc client
	AssistRPC *rpc.ClientConfig
	//coin rpc client
	CoinRPC *rpc.ClientConfig
	// thumbup rpc client
	ThumbupRPC *warden.ClientConfig
	// relation rpc client
	RelationRPC *rpc.ClientConfig
	// seq-server rpc client
	SeqRPC *rpc.ClientConfig
	Seq    *Seq
	// Location rpc client
	LocationRPC *rpc.ClientConfig
	// MemberRpc Rpc
	MemberRPC *rpc.ClientConfig
	// Filter Rpc
	FilterRPC *warden.ClientConfig
	// Figure RPC
	FigureRPC *rpc.ClientConfig
	// UgcPayRPC RPC
	UgcPayRPC *warden.ClientConfig
	// SpyRPC RPC
	SpyRPC *rpc.ClientConfig
	// Season RPC
	SeasonRPC *warden.ClientConfig
	// databus
	Databus   *databus.Config
	ActionPub *databus.Config
	// dm list realname
	Realname *Realname
	// dm rpc server
	RPCServer *rpc.ServerConfig
	// Antispam
	Antispam *antispam.Config
	// supervision conf
	Supervision *Supervision
	// Elastic config
	Elastic *elastic.Config
	// Bfs
	Bfs *Bfs
	// Subtitle Check Databus
	SubtitleCheckPub *databus.Config
	// Garbage danmu Switch
	Switch *Switch
	// BroadcastLimit
	BroadcastLimit *BroadcastLimit
	// DmFlag
	DmFlag *DmFlag
}

Config dm config struct

type DB

type DB struct {
	DMReader *sql.Config
	DMWriter *sql.Config
	DM       *sql.Config
}

DB mysql

type DmFlag

type DmFlag struct {
	RecFlag   int
	RecText   string
	RecSwitch int
}

DmFlag .

type Host

type Host struct {
	AI        string
	API       string
	Archive   string
	Message   string
	Search    string
	MaskCloud string
	Advert    string
	Upos      string
	Self      string
}

Host http host

type Localcache

type Localcache struct {
	Oids       []int64
	Expire     time.Duration
	ViewAids   []int64
	ViewExpire time.Duration
}

Localcache cache stored in local

type Memcache

type Memcache struct {
	DM *struct {
		*memcache.Config
		DMExpire      time.Duration
		SubjectExpire time.Duration
		HistoryExpire time.Duration
		AjaxExpire    time.Duration
		DMMaskExpire  time.Duration
	}
	Filter *struct {
		*memcache.Config
		Expire time.Duration
	}
	Subtitle *struct {
		*memcache.Config
		Expire time.Duration
	}
	DMSeg *struct {
		*memcache.Config
		DMExpire        time.Duration
		DMLimiterExpire time.Duration
	}
}

Memcache dm memcache

type Realname

type Realname struct {
	SwitchOn  bool
	Whitelist []int64
	Threshold map[string]int64
}

Realname realname switch and config

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 {
	DM *struct {
		BusinessID int64
		Token      string
	}
	Subtitle *struct {
		BusinessID int64
		Token      string
	}
}

Seq Conf

type Supervision

type Supervision struct {
	Completed bool
	StartTime string
	EndTime   string
	Location  string
}

Supervision supervision .

type Switch

type Switch struct {
	GarbageDanmu bool
}

Switch .

Jump to

Keyboard shortcuts

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