config

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 6 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 {
	LogLevel          log.Level     `default:"info" split_words:"true"`
	Addr              string        `default:"localhost:8083"`
	Registry          string        `default:"consul"`
	RegistryAddr      string        `default:"localhost:8500" split_words:"true"`
	RpcRequestTimeout time.Duration `default:"1m" split_words:"true" `
	Environments      map[string]string
}

func NewConfig

func NewConfig() Config

func (Config) GetRegistry

func (c Config) GetRegistry() registry.Registry

Jump to

Keyboard shortcuts

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