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 ¶
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"` }
Click to show internal directories.
Click to hide internal directories.