messaging

package
v0.0.0-...-d9b5379 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageSubscriptionHandler

type MessageSubscriptionHandler func(msg []byte) error

type MessagingQueueSubscription

type MessagingQueueSubscription interface {
	Unsubscribe() error
}

type MessagingService

type MessagingService interface {
	QueueSubscribe(topic string, group string, handler MessageSubscriptionHandler) (MessagingQueueSubscription, error)
	Publish(topic string, msg interface{}) error
}

func NewKafkaProtobufMessagingService

func NewKafkaProtobufMessagingService(bootstrapServers, schemaRegistryUrl string) (MessagingService, error)

func NewNatsMessagingService

func NewNatsMessagingService(cfg *config_api.MessagingAdapter) (MessagingService, error)

Coupled with protobuf encoder so expects protobuf serializable messages

func NewService

func NewService(adapter *config_api.MessagingAdapter) (MessagingService, error)

Jump to

Keyboard shortcuts

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