notify

package
v0.0.0-...-ff96fe8 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ConsumerGroup = "notify-consumer"
View Source
const Topic string = "notify"

Variables

This section is empty.

Functions

func InitPublish

func InitPublish(hosts []string)

func Processor

func Processor(ctx context.Context)

Processor 消息处理器

Types

type Message

type Message struct {
	User string `json:"user"`
}

func (Message) Publish

func (m Message) Publish(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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