server

package
v0.0.0-...-091f6e1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_CALIDUM_ROTAE_SERVICE_API_KEY = "CALIDUM_ROTAE_SERVICE_API_KEY"

	CALIDUM_ROTAE_TRACER_NAME = "calidum-rotae-tracer"

	EMAIL_POST_REQUEST   = "/email"
	DISCORD_POST_REQUEST = "/discord"
	DEFAULT_POST_REQUEST = "/"

	DISCORD_RPC_FUNC = "SendDiscordRpcRequest"
	EMAIL_RPC_FUNC   = "SendEmailRpcRequest"

	DISCORD_END_OF_SPAN = "Discord message sent!"
	EMAIL_END_OF_SPAN   = "Email sent!"
	OK_SPAN             = "HTTP request sent!"
)

Variables

This section is empty.

Functions

func CorsOriginFilter

func CorsOriginFilter(allowedDomains []string) func(string) bool

func InitHTTPServerFromViper

func InitHTTPServerFromViper(ctx context.Context, v *viper.Viper, services calidum.CalidumClient) (*serverutils.HttpServer, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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