Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Conf yaml_config.YmlConfig
Functions ¶
func PersistenceSmsJournal ¶ added in v0.5.0
func PersistenceSmsJournal()
func SelectSession ¶ added in v0.4.0
SelectSession 根据手机号码选择一个会话
func StartCacheExpireTicker ¶ added in v0.4.0
func StartCacheExpireTicker(asyncHandler func([]any))
StartCacheExpireTicker 过期数据定期检查器
Types ¶
type SessionFactory ¶ added in v0.4.0
func CreateSessionFactory ¶ added in v0.4.0
func CreateSessionFactory(isp string) *SessionFactory
CreateSessionFactory 创建或获取由isp指定的factory,isp需与sms.yml配置文件对应,否则会引起程序崩溃
func (*SessionFactory) Len ¶ added in v0.4.0
func (f *SessionFactory) Len() int
func (*SessionFactory) Less ¶ added in v0.4.0
func (f *SessionFactory) Less(i, j int) bool
func (*SessionFactory) PeekSession ¶ added in v0.4.0
func (f *SessionFactory) PeekSession() *session.Session
PeekSession 获取排序后在头部的会话(最近最少使用的会话)
func (*SessionFactory) Swap ¶ added in v0.4.0
func (f *SessionFactory) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.