config

package
v0.0.0-...-54bb499 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBrokerAddrs

func GetBrokerAddrs(service string) []string

func GetBrokerTopic

func GetBrokerTopic(service string) string

func GetDB

func GetDB(service string) db

func GetRegistryAddrs

func GetRegistryAddrs(service string) []string

func GetServiceName

func GetServiceName(service string) string

func GetTracingAddr

func GetTracingAddr(service string) string

func GetVersion

func GetVersion(service string) string

Types

type Conf

type Conf struct {
	Env           string              `yaml:"Env"`
	ServiceName   map[string]string   `yaml:"ServiceName"`
	Version       map[string]string   `yaml:"Version"`
	DB            map[string]db       `yaml:"DB"`
	BrokerTopic   map[string]string   `yaml:"BrokerTopic"`
	BrokerAddrs   map[string][]string `yaml:"BrokerAddrs"`
	RegistryAddrs map[string][]string `yaml:"RegistryAddrs"`
	TracingAddr   map[string]string   `yaml:"TracingAddr"`
}

func GetConfig

func GetConfig() Conf

Jump to

Keyboard shortcuts

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