env

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: MIT Imports: 7 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",
			Score: 100,
		},
		{
			Alias: "content",
			Score: 99,
		},
		{
			Alias: "description",
			Score: 98,
		},
		{
			Alias: "text",
			Score: 20,
		},
		{
			Alias: "body",
			Score: 15,
		},
		{
			Alias: "summary",
			Score: 10,
		},
		{
			Alias: "details",
			Score: 9,
		},
		{
			Alias: "payload",
			Score: 2,
		},
		{
			Alias: "data",
			Score: 1,
		},
	},
}

Jump to

Keyboard shortcuts

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