Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Debug bool Production bool DbConfigurationFile string ZimpeDbConfigurationFile string VerzDbConfigurationFile string DialerDbConfigurationFile string DbConfiguration *DbConfiguration ZimpeDbConfiguration *DbConfiguration VerzDbConfiguration *DbConfiguration DialerDbConfiguration *DbConfiguration JwtSecret string // contains filtered or unexported fields }
Config for the environment, read from a json file
func NewInitialConfig ¶
type ConfigBase ¶
type ConfigBase struct {
// contains filtered or unexported fields
}
func (*ConfigBase) ReadConfigurationFile ¶
func (cfg *ConfigBase) ReadConfigurationFile(fileName string) ([]byte, error)
type DbConfiguration ¶
type DbConfiguration struct { DBName string `json:"dbname,omitempty"` Engine string `json:"engine,omitempty"` Host string `json:"host,omitempty"` Port int `json:"port,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
func (*DbConfiguration) GetDSN ¶
func (cfg *DbConfiguration) GetDSN() (string, error)
func (*DbConfiguration) Validate ¶
func (cfg *DbConfiguration) Validate() error
type INewVoiceConfig ¶
type MailGrid ¶
type MailGrid struct { Host string `json:"host_smtp"` LinkAPI string `json:"linkAPI"` Username string `json:"usuario_smtp"` Password string `json:"senha_smtp"` Remetente string `json:"emailRemetente"` // contains filtered or unexported fields }
func NewMailGrid ¶
func NewMailGrid() *MailGrid
type Mailer ¶
type NewVoiceConfig ¶
type NewVoiceConfig struct { LinkAPI string `json:"linkAPI"` Code string `json:"code"` Account string `json:"account"` // contains filtered or unexported fields }
func NewNewVoiceConfig ¶
func NewNewVoiceConfig() *NewVoiceConfig
func (*NewVoiceConfig) GetConfig ¶
func (b *NewVoiceConfig) GetConfig() map[string]interface{}
func (*NewVoiceConfig) Load ¶
func (b *NewVoiceConfig) Load(file string) error
Click to show internal directories.
Click to hide internal directories.