api

package
v0.0.0-...-e55934f Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StartCmd = &cobra.Command{
		Use:   "start",
		Short: "start sme-delay-service api", SilenceUsage: true,
		PreRun: func(cmd *cobra.Command, args []string) {
			setup()
		},
		Run: func(cmd *cobra.Command, args []string) {

			run()

			logrus.Println("sme-delay-service end")
		},
	}
)

StartCmd api

Functions

func HandleDelayMessage

func HandleDelayMessage(message *nsq.Message) error

HandleDelayMessage HandleDelayMessage

func InitProducer

func InitProducer() (*nsq.Producer, error)

InitProducer InitProducer

func InitRedis

func InitRedis() (*redis.Client, error)

InitRedis InitRedis

func MakeConsumer

func MakeConsumer(topic, channel string, config *nsq.Config,
	handle func(message *nsq.Message) error)

MakeConsumer MakeConsumer

Types

This section is empty.

Jump to

Keyboard shortcuts

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