Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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, }, }, }
Click to show internal directories.
Click to hide internal directories.