config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: AGPL-3.0 Imports: 1 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 {
	// Server contains the information related to the web service
	Server Server
	// Threads indicates the maximum number of concurrent executions per API call
	Threads int `envconfig:"MC_THREADS" default:"100"`
}

Config contains all the information related to the variables necessary to customize the program execution

func Get

func Get() Config

Get returns the configuration required for program execution

type Server

type Server struct {
	Address string `envconfig:"MC_ADDR" default:"localhost:7767"`
}

Server contains the information related to the web service

Jump to

Keyboard shortcuts

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