model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SmsPrefix .
	SmsPrefix = "【哔哩哔哩】"
	// SmsSuffix .
	SmsSuffix = " 回TD退订"
	// SmsSuffixChuangLan .
	SmsSuffixChuangLan = " 退订回T"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentRing

type ConcurrentRing struct {
	*ring.Ring
	sync.Mutex
}

ConcurrentRing thread-safe ring

func NewConcurrentRing

func NewConcurrentRing(length int) *ConcurrentRing

NewConcurrentRing .

type Message

type Message struct {
	Action string          `json:"action"`
	Table  string          `json:"table"`
	New    json.RawMessage `json:"new"`
	Old    json.RawMessage `json:"old"`
}

Message .

type Provider

type Provider interface {
	// SendSms send sms
	GetPid() int32
	// SendSms send sms
	SendSms(context.Context, *smsmdl.ModelSend) (string, error)
	// SendActSms send act sms
	SendActSms(context.Context, *smsmdl.ModelSend) (string, error)
	// SendBatchActSms send batch act sms
	SendBatchActSms(context.Context, *smsmdl.ModelSend) (string, error)
	// SendInternationalSms send international sms
	SendInternationalSms(context.Context, *smsmdl.ModelSend) (string, error)
}

Provider service provider

type UserMobile

type UserMobile struct {
	CountryCode string `json:"code"`
	Mobile      string `json:"tel"`
}

UserMobile .

Jump to

Keyboard shortcuts

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