package
Version:
v0.0.0-...-a1d8bd3
Opens a new window with list of versions in this module.
Published: Oct 22, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func DatabaseConnection() *sql.DB
type Database struct {
ConnectionType string `yaml:"connection_type"`
User string `yaml:"user"`
Password string `yaml:"password"`
Host string `yaml:"host"`
Port string `yaml:"port"`
ConnectionName string `yaml:"connection_name"`
DatabaseName string `yaml:"database_name"`
}
type EnvironmentConfig struct {
Database Database `yaml:"database"`
Register Register `yaml:"register"`
Mail Mail `yaml:"mail"`
Token Token `yaml:"token"`
}
type Mail struct {
SendgridApiKey string `yaml:"sendgrid_api_key"`
TemplateLocation string `yaml:"template_location"`
}
type Register struct {
SendEmail bool `yaml:"send_email"`
ValidateUsernameEmail bool `yaml:"validate_username_email"`
Restrict bool `yaml:"restrict"`
AllowedAccounts []string `yaml:"allowed_accounts"`
}
type Token struct {
Issuer string `yaml:"issuer"`
IssuerGrpc string `yaml:"issuer_grpc"`
Audience string `yaml:"audience"`
Expiration int `yaml:"expiration"`
ExpirationRefresh int `yaml:"expiration_refresh"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.