conf

package
v0.0.0-...-8c4f4f5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 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 EnvironmentConfig

type EnvironmentConfig struct {
	LogLevel       string `env:"LOG_LEVEL" envDefault:"info"`
	HTTPServerPort int    `env:"HTTP_SERVER_PORT" envDefault:"8888"`
	GRPCServerPort int    `env:"GRPC_SERVER_PORT" envDefault:"8888"`
	RaftNodeId     string `env:"RAFT_NODE_ID" envDefault:"node_id"`
	RaftPort       int    `env:"RAFT_PORT" envDefault:"7777"`
	RaftVolumeDir  string `env:"RAFT_VOLUME_DIR" envDefault:"data"`
}

func EnvironmentConfigIns

func EnvironmentConfigIns() *EnvironmentConfig

EnvironmentConfigIns environment config

Jump to

Keyboard shortcuts

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