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{}
Click to show internal directories.
Click to hide internal directories.