conf

package
v0.0.0-...-5bb5805 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 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 AppConf

type AppConf struct {
	KafkaConf   `ini:"kafka"`
	TailLogConf `ini:"tailLog"` // 后期从etcd中获取
	EtcdConf    `ini:"etcd"`
}

type EtcdConf

type EtcdConf struct {
	Address string `ini:"address"`
	Timeout int    `ini:"timeout"`
	Key     string `ini:"log_collect_key"`
}

type KafkaConf

type KafkaConf struct {
	Address  string `ini:"address"`
	ChanSize int    `ini:"chan_max_size"`
	Topic    string `ini:"topic"` // 后期从etcd中获取
}

type TailLogConf

type TailLogConf struct {
	FilePath string `ini:"file_path"` // 后期从etcd中获取
}

----used----

Jump to

Keyboard shortcuts

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