env

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type ENV_

type ENV_ struct {
	PORT              string
	API_URL           string
	API_TOKEN         string
	BLOCKED_ENDPOINTS []string
	VARIABLES         map[string]any
}
var ENV ENV_ = ENV_{
	BLOCKED_ENDPOINTS: []string{
		"/v1/about",
		"/v1/configuration",
		"/v1/devices",
		"/v1/register",
		"/v1/unregister",
		"/v1/qrcodelink",
		"/v1/accounts",
		"/v1/contacts",
	},
	VARIABLES: map[string]any{
		"RECIPIENTS": []string{},
		"NUMBER":     os.Getenv("SENDER"),
	},
}

Jump to

Keyboard shortcuts

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