config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyEnv = errors.New("env is needed, but empty")

ErrEmptyEnv represents the required environment variable don't exist.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port        int
	EtcdURL     string
	FrontendURL string
}

Config is configuration for simulator.

func NewConfig

func NewConfig() (*Config, error)

NewConfig gets some settings from environment variables.

Jump to

Keyboard shortcuts

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