config

package
v0.0.0-...-b0206a0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ControllerNameEnvVar = EnvVar{"CONTROLLER_NAME", ""}
	ImageClientEnvVar    = EnvVar{"IMAGE_CLIENT", ""}
	MetricsPortEnvVar    = EnvVarInt{"METRICS_PORT", -1}
	P2PPortEnvVar        = EnvVarInt{"P2P_PORT", -1}
	RPCPortEnvVar        = EnvVarInt{"RPC_PORT", -1}
	WSPortEnvVar         = EnvVarInt{"WS_PORT", -1}
)

these vars are set by the main function at the startup

Functions

func LoadAllEnvVar

func LoadAllEnvVar() error

this function is called by the main at the startup

Types

type EnvVar

type EnvVar struct {
	Value string
	// contains filtered or unexported fields
}

type EnvVarInt

type EnvVarInt struct {
	Value int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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