rabbitmq

package
v0.0.0-...-13e599b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MesssagePersonCreated    = "person.created"
	MessagePersonDeleted     = "person.deleted"
	MessageFriendshipCreated = "friendship.created"
)

types for: https://www.rabbitmq.com/publishers.html#message-properties

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMq

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

func NewRabbitMq

func NewRabbitMq(ch *amqp.Channel) *RabbitMq

func (*RabbitMq) CreatedFriendship

func (s *RabbitMq) CreatedFriendship(ctx context.Context, friendship internal.Friendship) error

func (*RabbitMq) CreatedPerson

func (s *RabbitMq) CreatedPerson(ctx context.Context, person *internal.Person) error

func (*RabbitMq) DeletedPerson

func (s *RabbitMq) DeletedPerson(ctx context.Context, id int64) error

Jump to

Keyboard shortcuts

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