config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 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 AuthConfig

type AuthConfig struct {
	TLS      bool   `yaml:"tls"`
	CertFile string `yaml:"cert"`
	KeyFile  string `yaml:"key"`
}

AuthConfig provides auth configuration

type Config

type Config struct {
	APPName          string                   `yaml:"appname"`
	Port             int                      `yaml:"port"`
	Tracing          *jaegercfg.Configuration `yaml:"tracing"`
	ServiceDiscovery ServiceDiscoveryCfg      `yaml:"service-discovery"`
	Auth             *AuthConfig              `yaml:"auth"`
	UpstreamSetting  string                   `yaml:"upstream-setting"`
	Properties       map[string]string        `yaml:"props"`
}

Config defines all configuration of an application

type ServiceDiscoveryCfg

type ServiceDiscoveryCfg struct {
	Type   string            `yaml:"type"` // consul or direct, default is direct
	Consul *consulapi.Config `yaml:"consul"`
}

ServiceDiscoveryCfg provides config of service discovery

Jump to

Keyboard shortcuts

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