Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatD360Config ¶ added in v0.5.0
type ChatD360Config struct {
LinkAPI string `json:"linkAPI"`
LinkAuth string `json:"linkAuth"`
ClientID string `json:"clientId"`
ClientSecret string `json:"clientSecret"`
GrantType string `json:"grantType"`
Username string `json:"username"`
Password string `json:"password"`
Scope string `json:"scope"`
ServiceID string `json:"serviceId"`
ServiceType string `json:"serviceType"`
Token string `json:"token"`
// contains filtered or unexported fields
}
func NewChatD360Config ¶ added in v0.5.0
func NewChatD360Config() *ChatD360Config
func (*ChatD360Config) GetConfig ¶ added in v0.5.0
func (b *ChatD360Config) GetConfig() map[string]interface{}
func (*ChatD360Config) Load ¶ added in v0.5.0
func (b *ChatD360Config) Load(file string) error
type Config ¶
type Config struct {
Debug bool
Production bool
DBConfigurationFile string
AgnuDBConfigurationFile string
DBConfiguration *Database
AgnuDBConfiguration *Database
JwtSecret string
// contains filtered or unexported fields
}
func NewInitialConfig ¶
NewInitialConfig reads configuration from json file and validates it
type ConfigBase ¶
type ConfigBase struct {
// contains filtered or unexported fields
}
func (*ConfigBase) ReadConfigurationFile ¶
func (cfg *ConfigBase) ReadConfigurationFile(fileName string) ([]byte, error)
type Database ¶ added in v0.6.0
type Database struct {
Name string `json:"name,omitempty"`
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"`
// contains filtered or unexported fields
}
func NewDatabase ¶ added in v0.6.0
type IChatD360Config ¶ added in v0.5.0
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.