configuration

package
v0.0.0-...-182b9a3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugLbl                  = "DEBUG"
	I18nTagLbl                = "I18N_TAG"
	BotOauthTokenLbl          = "BOT_USER_OAUTH_ACCESS_TOKEN"
	VerificationTokenLbl      = "VERIFICATION_TOKEN"
	EmailSMTPServerLbl        = "EMAIL_SMTP_SERVER"
	EmailSMTPPortLbl          = "EMAIL_SMTP_PORT"
	EmailUserLbl              = "EMAIL_USER"
	EmailPasswordLbl          = "EMAIL_PASSWORD"
	VacationRecipientEmailLbl = "VACATION_RECIPIENT_EMAIL"
)

Dotenv file variables labels

Variables

This section is empty.

Functions

func Setup

func Setup()

Setup configuration.

Types

type Configuration

type Configuration struct {
	Debug       bool
	I18nPrinter *message.Printer
	Slack       SlackEnv
	Email       EmailEnv
}

Configuration container.

var Env Configuration

Env environment data.

type EmailEnv

type EmailEnv struct {
	SMTPServer        string
	SMTPPort          int
	User              string
	Password          string
	VacationRecipient string
}

type SlackEnv

type SlackEnv struct {
	BotOauthToken     string
	VerificationToken string
	BotID             string
	BotChannelID      string
}

Jump to

Keyboard shortcuts

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