config

package
v0.0.0-...-4648e5f Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseURL string `yaml:"base_url"`

	Communication struct {
		ActiveService string `yaml:"active_service"`
		Services      struct {
			Slack struct {
				AppToken string `yaml:"app_token"`
				BotToken string `yaml:"bot_token"`
			} `yaml:"slack"`
			MSTeams struct {
				WebhookURL string `yaml:"webhook_url"`
			} `yaml:"ms_teams"`
		} `yaml:"services"`
	} `yaml:"communication"`

	Email struct {
		Enabled    bool   `yaml:"enabled"`
		From       string `yaml:"from"`
		SMTPServer string `yaml:"smtp_server"`
		Port       int    `yaml:"port"`
		Username   string `yaml:"username"`
		Password   string `yaml:"password"`
	} `yaml:"email"`

	Auth struct {
		Provider     string
		ClientID     string `yaml:"client_id"`
		ClientSecret string `yaml:"client_secret"`
		Issuer       string `yaml:"issuer"`
		CallbackURL  string `yaml:"callback_url"`
	} `yaml:"auth"`

	Report struct {
		URL string `yaml:"url"`
	} `yaml:"report"`

	Authenticator struct {
		Enabled bool `yaml:"enabled"`
	} `yaml:"authenticator"`

	Messages Messages `yaml:"messages"`
}

func LoadConfig

func LoadConfig() (Config, error)

type Messages

type Messages struct {
	VerificationMessage                 string `yaml:"verification_message"`
	RequestConfirmationMessage          string `yaml:"request_confirmation_message"`
	RequestorCompletionMessage          string `yaml:"requestor_completion_message"`
	RecipientCompletionMessage          string `yaml:"recipient_completion_message"`
	RequestorVerificationFailureMessage string `yaml:"requestor_verification_failure_message"`
	RecipientVerificationFailureMessage string `yaml:"recipient_verification_failure_message"`
}

Jump to

Keyboard shortcuts

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