dispatch

package
v0.0.0-...-fa8172e Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartConsume

func StartConsume()

启动Nsq

func StopConsume

func StopConsume()

停止Nsq

Types

type Consumer

type Consumer struct {
	NsqConsumer *nsq.Consumer
	Cfg         *nsq.Config
	Topic       string
	Channel     string
}

Nsq 对应配置

type Handler

type Handler struct {
	Topic string
}

func (*Handler) HandleMessage

func (this *Handler) HandleMessage(m *nsq.Message) error

Jump to

Keyboard shortcuts

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