vms

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(accessKeyID, accessKeySecret, monitorTtsCode, monitorCalledShowNumber string, bundle *bundle.Bundle) subscriber.Subscriber

New 新建一个语音通知分发的实例

Types

type Option

type Option func(*VoiceSubscriber)

type VoiceData

type VoiceData struct {
	Template         string            `json:"template"`
	CalledShowNumber string            `json:"calledShowNumber"`
	Params           map[string]string `json:"params"`
	OrgID            int64             `json:"orgID"`
}

VoiceData 语音通知数据

type VoiceSubscriber

type VoiceSubscriber struct {
	// contains filtered or unexported fields
}

VoiceSubscriber 语音通知分发

func (*VoiceSubscriber) Name

func (d *VoiceSubscriber) Name() string

func (*VoiceSubscriber) Publish

func (d *VoiceSubscriber) Publish(dest string, content string, time int64, msg *types.Message) []error

Publish 推送语音

func (*VoiceSubscriber) Status

func (d *VoiceSubscriber) Status() interface{}

Jump to

Keyboard shortcuts

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