config

package
v0.0.0-...-910e886 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig() error

Types

type Freeswitch

type Freeswitch struct {
	FsHost     string
	FsPort     string
	FsPassword string
	FsTimeout  int
}

FreeSwitch SIP 链接信息

type Heartbeat

type Heartbeat struct {
	BaseUrl  string
	UserName string
	Secret   string
}

type Kamgo

type Kamgo struct {
	BaseUrl  string
	UserName string
	Secret   string
}

type Logging

type Logging struct {
	Facility string
	Level    string
	Tag      string
	Syslog   string
	Sentry   string
	Path     string
	Day      int
	Hour     int
}

Logging 日志信息

type Numbers

type Numbers struct {
	BaseUrl  string
	UserName string
	Secret   string
}

type Rating

type Rating struct {
	BaseUrl  string
	UserName string
	Secret   string
	Region   string
}

type RecordingService

type RecordingService struct {
	BaseUrl  string
	UserName string
	Secret   string
}

type Redis

type Redis struct {
	RedisHost     string
	RedisPort     string
	RedisPassword string
	RedisDB       int
}

存储Redis信息

type SLS

type SLS struct {
	Enable       int
	Endpoint     string
	AccessKey    string
	AccessSecret string
	Project      string
	LogStor      string
	Topic        string
	Source       string
}

SLS 对接阿里SLS日志系统

type SequoiaConfig

type SequoiaConfig struct {
	Title            string
	Server           Server
	Logging          Logging
	Fs               Freeswitch
	Redis            Redis
	Heartbeat        Heartbeat
	RecordingService RecordingService
	Rating           Rating
	Numbers          Numbers
	SipEndpoint      SipEndpoint
	Kamgo            Kamgo
	Sls              SLS
}

TomlConfig represent the root of configuration

var Config SequoiaConfig

type Server

type Server struct {
	Port          string
	QueueLen      int
	ErrorQueueLen int
	GinMode       string
}

Server 服务启动信息

type SipEndpoint

type SipEndpoint struct {
	BaseUrl  string
	UserName string
	Secret   string
}

Jump to

Keyboard shortcuts

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