fsds

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FSDS

func FSDS(params *CallParams) string

Types

type CallParams

type CallParams struct {
	Endpoint  string
	Profile   string
	DestNum   string
	IP        string
	Port      string
	Transport string
	Params    map[string]string
}

type Dial added in v1.1.0

type Dial struct {
	LocalExtensionNum int          // 通过分机号码呼出
	IP                IPParam      // 通过IP呼出
	Gateway           GatewayParam // 通过网关呼出
}

func (Dial) String added in v1.1.0

func (d Dial) String() (string, error)

type File

type File struct {
	Path   string
	Name   string
	Params map[string]string
}

func (*File) String

func (f *File) String() string

type GatewayParam added in v1.1.0

type GatewayParam struct {
	Realm    string
	Username string
	Password string
}

type IPParam added in v1.1.0

type IPParam struct {
	Num       int
	IP        string
	Port      int
	Transport TransportProtocol // TCP = 1; TLS = 2
}

type PNGFile

type PNGFile struct {
	*File
	MS        string // 图片显示时长
	Alpha     bool   // 是否支持Alpha通道
	PNGFPS    int    // png_fps:帧率,默认为5
	Text      string // 文本,可以以TTS方式播放,但需要提供下列参数
	TTSEngine string // TTS引擎
	TTSVoice  string // TTS发音人
	DText     string // 文字
	FG        string // 显示文本前景色,Web格式,如#FFFFFF
	BG        string // 显示文件背景色,Web格式,如#000000,支持透明度(Alpha Channel),如#00000020
	Size      string // 字体大小,像素值,如24。也支持相对大小,如5vw、5vh,等,其中一个vw或vh分别为图像宽度和高度的百分之一
	ScaleW    string // 缩放图像宽度,像素
	ScaleH    string // 缩放图像高度,像素

}

func (PNGFile) String

func (f PNGFile) String() (string, error)

type TransportProtocol added in v1.1.0

type TransportProtocol int
const (
	NULL TransportProtocol = iota
	TCP
	TLS
)

type User

type User struct {
	Domain string
	Number string
	IP     string
}

func (*User) String

func (u *User) String() string

Jump to

Keyboard shortcuts

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