configure

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 2 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 {
	Producer Producer `toml:"producer"`
}

TODO 显然不能使用接口解析配置信息的,所以这里是错误的

func ParseConfig

func ParseConfig(path string) (*Config, error)

type KProducer

type KProducer struct {
	Hosts []string `toml:"hosts"`
	Topic string   `toml:"topic"`
}

type Producer

type Producer interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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