config

package
v0.0.0-...-3d0596a Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 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 Config

type Config struct {
	Debug bool `envcfg:"L10N_SECRET"`
	// Secret is a random bytes to sign jwt
	Secret string `envcfg:"L10NC_SECRET"`
	// Bind string, default ":3000"
	Bind string `envcfg:"L10NC_BIND"`
	// Jaeger addr, default "localhost:5775"
	Jaeger string `envcfg:"L10NC_JAEGER"`
	// MongoHost addr, default "localhost:27017"
	MongoHost string `envcfg:"L10NC_MONGO_HOST"`
	// MongoDB name, default "l10n_center"
	MongoDB string `envcfg:"L10NC_MONGO_DB"`
}

Config of application

func Default

func Default() *Config

Default Config

Jump to

Keyboard shortcuts

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