mq

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopicTaskMemberAdded = "task_member_added"
	TopicIssueAssigned   = "issue_assigned"
)

Variables

This section is empty.

Functions

func Publish

func Publish(topic string, msg *Message, delay ...time.Duration)

Publish publishes a message to a topic.

func RegisterTopic

func RegisterTopic(topic string, handler func(*Message))

RegisterTopic registers a topic and its handler.

Types

type IssueAssignedMessage

type IssueAssignedMessage struct {
	IssueId    uint64
	OperatorId uint64
	AssigneeId uint64
}

type Message

type Message struct {
	Topic string
	Data  interface{}
}

type TaskMemberAddedMessage

type TaskMemberAddedMessage struct {
	TaskId       uint64
	MemberIdList []uint64
}

Jump to

Keyboard shortcuts

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