broker

package
v0.0.0-...-9b4e594 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = config.BrokerConfig

type Event

type Event = models.Event

type MemoryBroker

type MemoryBroker struct {
	Events map[string][]Event
}

func NewMemoryBroker

func NewMemoryBroker() (*MemoryBroker, error)

func (*MemoryBroker) SendEvent

func (mb *MemoryBroker) SendEvent(event Event) error

type NoneBroker

type NoneBroker struct{}

func NewNoneBroker

func NewNoneBroker() *NoneBroker

func (*NoneBroker) Close

func (n *NoneBroker) Close()

func (*NoneBroker) SendEvent

func (n *NoneBroker) SendEvent(event Event) error

type RabbitMQClient

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

func NewRabbitMqClient

func NewRabbitMqClient(cfg Config) (*RabbitMQClient, error)

func (*RabbitMQClient) Close

func (mq *RabbitMQClient) Close()

func (*RabbitMQClient) SendEvent

func (mq *RabbitMQClient) SendEvent(event Event) error

type SQSClient

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

func NewSQSClient

func NewSQSClient(cfg Config, region string) (*SQSClient, error)

func (*SQSClient) Close

func (svc *SQSClient) Close()

Don't do anything, just keep compatibility.

func (*SQSClient) SendEvent

func (svc *SQSClient) SendEvent(event Event) error

Jump to

Keyboard shortcuts

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