service

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoUserRegister = errors.New("不是用户注册")
)

Functions

func AddSyncCover added in v1.0.7

func AddSyncCover(videoId string)

AddSyncCover 推送到chan中

func BindBaiduNetdiskHandler

func BindBaiduNetdiskHandler(textRequestBody *wechat.TextRequestBody) (wechat.PassiveUserReplyMessage, error)

func IsMobile

func IsMobile(userAgent string) bool

func Push

func Push(ctx context.Context, content MediaContent)

func Register

func Register(content, wechatId string) error

func RegisterHandler

func RegisterHandler(keyword string, handler WechatHandler)

func Run

func Run(ctx context.Context) (err error)

func RunCron added in v1.0.7

func RunCron(ctx context.Context)

RunCron 运行定时任务

func UserRegisterHandler

func UserRegisterHandler(textRequestBody *wechat.TextRequestBody) (wechat.PassiveUserReplyMessage, error)

Types

type MediaContent

type MediaContent struct {
	Content string
	UserId  string
}

type WechatHandler

func GetHandler

func GetHandler(keyword string) WechatHandler

Jump to

Keyboard shortcuts

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