service

package
v0.0.0-...-20002e4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nsq

type Nsq struct {
	// contains filtered or unexported fields
}

func (*Nsq) Process

func (n *Nsq) Process(msg interface{})

Process 处理消息.

func (*Nsq) Pub

func (n *Nsq) Pub(msg interface{})

Pub 发布消息.

type TopicMsg

type TopicMsg struct {
	Name string // 主题名称
	// contains filtered or unexported fields
}

TopicMsg 主题定义.

func NewTopicMsg

func NewTopicMsg(topicName string, i interface{}) *TopicMsg

NewTopicMsg 实例话 topic 相关调用的结构体.

func (*TopicMsg) Process

func (t *TopicMsg) Process(ctx context.Context, msg interface{})

Process 处理消息.

func (*TopicMsg) Pub

func (t *TopicMsg) Pub(ctx context.Context, msg interface{})

Pub 发送消息.

Jump to

Keyboard shortcuts

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