conf

package
v0.7.14 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 7 Imported by: 2

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

func NewInitialConfig(fileName string) (Config, error)

NewInitialConfig reads configuration from json file and validates it

func (*Config) Validate

func (cfg *Config) Validate() error

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

func NewDatabase(file string) (*Database, error)

func (*Database) GetDSN added in v0.6.0

func (cfg *Database) GetDSN() (string, error)

func (*Database) Validate added in v0.6.0

func (cfg *Database) Validate() error

type Digisac added in v0.7.0

type Digisac struct {
	LinkAPI string `json:"linkAPI"`
	Token   string `json:"token"`
	// contains filtered or unexported fields
}

func NewDigisac added in v0.7.0

func NewDigisac() *Digisac

func (*Digisac) GetConfig added in v0.7.0

func (b *Digisac) GetConfig() map[string]interface{}

func (*Digisac) Load added in v0.7.0

func (b *Digisac) Load(file string) error

type IChatD360Config added in v0.5.0

type IChatD360Config interface {
	Load(file string) error
	GetConfig() map[string]string
}

type INewVoiceConfig

type INewVoiceConfig interface {
	Load(file string) error
	GetConfig() map[string]string
}

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

func (*MailGrid) GetConfig

func (b *MailGrid) GetConfig() map[string]interface{}

func (*MailGrid) Load

func (b *MailGrid) Load(file string) error

type Mailer

type Mailer struct {
	Host     string `json:"host"`
	Port     string `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
	// contains filtered or unexported fields
}

func NewMailer

func NewMailer() *Mailer

func (*Mailer) GetConfig

func (b *Mailer) GetConfig() map[string]string

func (*Mailer) Load

func (b *Mailer) Load(file string) error

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

type Sentry added in v0.7.8

type Sentry struct {
	DSN string `json:"dsn"`
	// contains filtered or unexported fields
}

func NewSentry added in v0.7.8

func NewSentry() *Sentry

func (*Sentry) GetConfig added in v0.7.8

func (b *Sentry) GetConfig() map[string]string

func (*Sentry) Load added in v0.7.8

func (b *Sentry) Load(file string) error

type WhatsappTemplate added in v0.6.7

type WhatsappTemplate struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	// contains filtered or unexported fields
}

func NewWhatsappTemplate added in v0.6.7

func NewWhatsappTemplate() *WhatsappTemplate

func (*WhatsappTemplate) GetConfig added in v0.6.7

func (b *WhatsappTemplate) GetConfig() map[string]string

func (*WhatsappTemplate) Load added in v0.6.7

func (b *WhatsappTemplate) Load(file string) error

Jump to

Keyboard shortcuts

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