tnsq

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Addr4150 = "127.0.0.1:4150"
	Addr4161 = "127.0.0.1:4161"
)

Variables

This section is empty.

Functions

func NewConsumer

func NewConsumer(topic string, channel string, handle nsq.HandlerFunc)

初始化消费者

func Start

func Start(c *gin.Context)

Types

type Bar

type Bar struct {
}

func (*Bar) BarFuncAdd

func (b *Bar) BarFuncAdd(argOne, argTwo float64) float64

type Consumer

type Consumer struct{}

消费者

func (*Consumer) HandleMessage

func (*Consumer) HandleMessage(msg *nsq.Message) error

处理消息

type Foo

type Foo struct {
}

func (*Foo) FooFuncSwap

func (f *Foo) FooFuncSwap(argOne, argTwo string) (string, string)

Jump to

Keyboard shortcuts

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