config

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminConfig

type AdminConfig struct {
	WebPort int64  `toml:"webport,omitempty"`
	RPCPort int64  `toml:"rpcport,omitempty"`
	Logs    string `toml:"logs,omitempty"`
	WebLogs string `toml:"weblogs,omitempty"`
}

type CenterConfig

type CenterConfig struct {
	RPCPort int64  `toml:"rpcport,omitempty"`
	Logs    string `toml:"logs,omitempty"`
}

type KafkaConfig

type KafkaConfig struct {
	BrokerList  string `toml:"broker_list,omitempty"`
	TopicPrefix string `toml:"topic_prefix,omitempty"`
	User        string `toml:"user,omitempty"`
	Pass        string `toml:"pass,omitempty"`
}

type ReceiveConfig

type ReceiveConfig struct {
	WebPort int64  `toml:"webport,omitempty"`
	RPCPort int64  `toml:"rpcport,omitempty"`
	Logs    string `toml:"logs,omitempty"`
	WebLogs string `toml:"weblogs,omitempty"`
}

type RedisConfig

type RedisConfig struct {
	Host           string `toml:"host,omitempty"`
	Db             int    `toml:"db,omitempty"`
	Password       string `toml:"password,omitempty"`
	MaxIdle        int    `toml:"maxIdle,omitempty"`        // 连接池最大空闲连接数
	MaxActive      int    `toml:"maxActive,omitempty"`      // 连接池最大激活连接数
	IdleTimeout    int    `toml:"idleTimeout,omitempty"`    // 连接池最大激活连接数
	ConnectTimeout int    `toml:"connectTimeout,omitempty"` // 连接超时, 单位毫秒
	ReadTimeout    int    `toml:"readTimeout,omitempty"`    // 读取超时, 单位毫秒
	WriteTimeout   int    `toml:"writeTimeout,omitempty"`   // 写入超时, 单位毫秒
}

type SorakaConf

type SorakaConf struct {
	KafkaConf   KafkaConfig   `toml:"kafka,omitempty"`
	ZkConf      ZkConfig      `toml:"zookeeper,omitempty"`
	RedisConf   RedisConfig   `toml:"redis,omitempty"`
	Logs        string        `toml:"logs,omitempty"`
	AdminConf   AdminConfig   `toml:"admin,omitempty"`
	ReceiveConf ReceiveConfig `toml:"receive,omitempty"`
	CenterConf  CenterConfig  `toml:"center,omitempty"`
	WorkerConf  WorkerConfig  `toml:"worker,omitempty"`
}

type WorkerConfig

type WorkerConfig struct {
	RPCPort int64  `toml:"rpcport,omitempty"`
	Logs    string `toml:"logs,omitempty"`
}

type ZkConfig

type ZkConfig struct {
	Host           string `toml:"host,omitempty"`
	SessionTimeout int    `toml:"session_timeout,omitempty"`
}

Jump to

Keyboard shortcuts

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