config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadYAML

func LoadYAML(path string, v interface{}) error

Types

type EtcdConf

type EtcdConf struct {
	Addr []string `yaml:"addr"`
	TTL  int      `yaml:"ttl"`
}

type KafkaConf

type KafkaConf struct {
	Addr []string `yaml:"addr"`
}

type MCConf

type MCConf struct {
	Addr []string `yaml:"addr"`
}

type MysqlConf

type MysqlConf struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	DB       string `yaml:"db"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
}

type RedisConf

type RedisConf struct {
	Addr string `yaml:"addr"`
	DB   int    `yaml:"db"`
	Type string `yaml:"type"`
}

type SvcConf

type SvcConf struct {
	Bind string `yaml:"bind"`
	Addr string `yaml:"addr"`
	Name string `yaml:"name"`
}

Jump to

Keyboard shortcuts

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