config

package
v0.0.0-...-0dcc19d Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// kafka配置
	Kafka Kafka
	Other Other
}
var Cfg Config

func (*Config) Load

func (cfg *Config) Load(ConfPath string) error

func (*Config) Monitor

func (cfg *Config) Monitor(ConfPath string)

type Kafka

type Kafka struct {
	Addr   string
	Thread int
	Num    int
	Topic  string
	// 开关,决定是否传到kafka里
	On bool
}

type Other

type Other struct {
	// 拦截节点地址
	Local string
	// 日志等级
	Debug int
	// lua虚拟机个数
	VMNum int
}

Jump to

Keyboard shortcuts

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