config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileFlag

func CheckFileFlag(format string, file string) error

CheckFileFlag is used to check if the given format requires the 'file' flag to be set. If the flag is required and the given file variable is empty, return an error.

Types

type Env

type Env struct {
	ZabbixUrl  string
	ZabbixUser string
	ZabbixPwd  string
}

func GetEnvironmentVariables

func GetEnvironmentVariables() (*Env, error)

GetEnvironmentVariables is used to retrive the required environment variables for the Zabbix API.

Jump to

Keyboard shortcuts

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