config

package
v0.0.0-...-4fbe3ce Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvProd  = "prod"
	EnvStage = "stage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DeployEnv string
	Listen    string
	Gateway   struct {
		Endpoint string
	}
	Debug struct {
		Trace            bool
		GRPCTraceAddress string
	}
	Authorize struct {
		RawTokens []string
	}
	MetaInfoRedis struct {
		Addr     string
		Password string
		DB       int
	}
	Web struct {
		ModuleServiceAddress string
		AuthToken            string
	}
}

func GetConfig

func GetConfig() *Config

func (*Config) String

func (c *Config) String() string

Jump to

Keyboard shortcuts

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