handler

package
v0.0.0-...-70261f9 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// email交换机
	EMAIL_EXCHANGE = "email_exchange"
	// email队列
	EMAIL_QUEUE = "email_queue"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailHandler

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

func NewEmailHandler

func NewEmailHandler(url string) *EmailHandler

func (*EmailHandler) Publisher

func (s *EmailHandler) Publisher() rabbitmq.MessagePublisher

func (*EmailHandler) ReceiveMessage

func (s *EmailHandler) ReceiveMessage(handler func(message string)) error

func (*EmailHandler) SendMessage

func (s *EmailHandler) SendMessage(message string) error

func (*EmailHandler) Subscriber

func (s *EmailHandler) Subscriber() rabbitmq.MessageSubscriber

Jump to

Keyboard shortcuts

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