config

package
v0.0.0-...-3e7d5d6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsteriskConfig

type AsteriskConfig struct {
	IP       string        `json:"ip"`
	Port     string        `json:"port"`
	Timeout  time.Duration `json:"timeout"`
	Username string        `json:"username"`
	Password string        `json:"password"`
}

func (*AsteriskConfig) GetAsteriskConfig

func (c *AsteriskConfig) GetAsteriskConfig() *AsteriskConfig

type DBConfig

type DBConfig struct {
	Driver          string        `json:"driver"`
	DBServer        string        `json:"db_server"`
	Port            int           `json:"port"`
	DBName          string        `json:"db_name"`
	Scheme          string        `json:"scheme"`
	Username        string        `json:"username"`
	Password        string        `json:"password"`
	ConnMaxLifetime time.Duration `json:"conn_max_lifetime"`
	MaxOpenConns    int           `json:"max_open_conns"`
	MaxIdleConns    int           `json:"max_idle_conns"`
}

func (*DBConfig) GetDBConfig

func (b *DBConfig) GetDBConfig() *DBConfig

type HttpConfig

type HttpConfig struct {
	IP   string `json:"ip"`
	PORT string `json:"port"`
}

func (*HttpConfig) GetHTTPConfig

func (a *HttpConfig) GetHTTPConfig() (IP, PORT string)

Jump to

Keyboard shortcuts

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