config

package
v0.0.0-...-28976e9 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Tracer  Trace
	Log     Logger
	Service Service
	Http    Http
}

func InitConfig

func InitConfig() Configuration

type Http

type Http struct {
	Port string `env:"PORT,default=8080"`
}

type Logger

type Logger struct {
	Level string `env:"LEVEL,default=info"`
}

type Service

type Service struct {
	Name    string
	Version string
	Project string `env:"PROJECT,default=github.com/theykk/galactic"`
}

type Trace

type Trace struct {
	URl       string `env:"URL"`
	BatchSize int    `env:"BATCH_SIZE,default=16"`
}

Jump to

Keyboard shortcuts

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