config

package
v0.0.0-...-e4798cc Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHosts

func GetHosts() []string

Get Hosts from Env and return them as a slice

func Startup

func Startup() error

Set configuration options from Env values and setup the Fiber options

Types

type Configuration

type Configuration struct {
	FiberConfig   fiber.Config
	Debug         bool
	ProbeInterval int
	ProbeTimeout  int
}
var (
	Config Configuration
)

type InfluxConfiguration

type InfluxConfiguration struct {
	Bucket         string
	InfluxMaxError int
	InfluxdbServer string
	Org            string
	Token          string
}

func InfluxEnvStartup

func InfluxEnvStartup() InfluxConfiguration

Set configuration options from Env values and setup the Fiber options

Jump to

Keyboard shortcuts

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