vms

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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