config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 7 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 {
	Addr              string `default:"localhost:8083"`
	Registry          string `default:"consul"`
	RegistryAddress   string `split_words:"true" default:"localhost:8500"`
	RpcRequestTimeout string `default:"1m"`
	Environments      string
}

func NewConfig

func NewConfig() Config

func (Config) GetAddr

func (c Config) GetAddr() string

func (Config) GetEnvironments

func (c Config) GetEnvironments() map[string]string

Parses micro web environment urls into map.

func (Config) GetRegistry

func (c Config) GetRegistry() registry.Registry

func (Config) GetRpcRequestTimeout

func (c Config) GetRpcRequestTimeout() time.Duration

Jump to

Keyboard shortcuts

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