jobs

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consumer added in v1.6.0

func Consumer(topic string) (kafkaConsumer kafka.Consumer)

Consumer 调用消费者执行消费 @param topic string 消费主题 @return kafkaConsumer 返回kafka消费者结构体

func Dispatch

func Dispatch(data map[string]interface{}, jobFunc func(topic string))

Dispatch 消息队列 @param data 待消费数据 @param jobFunc 消费者函数 @return 返回一个闭包

func SendSms

func SendSms(topic string)

SendSms 发送短信队列 @param string topic 消息主题 @return void

Types

This section is empty.

Jump to

Keyboard shortcuts

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