amqp

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostPublisher

type PostPublisher struct {
	PostCreatedEventEndpoint       endpoint.Endpoint
	UpdateNewsLinesCommandEndpoint endpoint.Endpoint
}

func NewPostPublisher

func NewPostPublisher(
	channel *amqp.Channel,
	logger *logrus.Entry,
	retryBackoff backoff.BackOff,
) (*PostPublisher, error)

func (PostPublisher) PublishPostCreatedEvent

func (publisher PostPublisher) PublishPostCreatedEvent(ctx context.Context, post domain.Post) error

func (PostPublisher) PublishUpdateNewsLinesCommand

func (publisher PostPublisher) PublishUpdateNewsLinesCommand(ctx context.Context, followers []uuid.UUID) error

Jump to

Keyboard shortcuts

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