env

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 5 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_TOKENS        []string
	BLOCKED_ENDPOINTS []string
	VARIABLES         map[string]any
	MESSAGE_ALIASES   []middlewares.MessageAlias
}
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("NUMBER"),
	},
	MESSAGE_ALIASES: []middlewares.MessageAlias{
		{
			Alias:    "msg",
			Priority: 100,
		},
		{
			Alias:    "content",
			Priority: 99,
		},
		{
			Alias:    "description",
			Priority: 98,
		},
		{
			Alias:    "text",
			Priority: 20,
		},
		{
			Alias:    "body",
			Priority: 15,
		},
		{
			Alias:    "summary",
			Priority: 10,
		},
		{
			Alias:    "details",
			Priority: 9,
		},
		{
			Alias:    "payload",
			Priority: 2,
		},
		{
			Alias:    "data",
			Priority: 1,
		},
	},
}

Jump to

Keyboard shortcuts

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