messaging

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverRabbitMQ = "rabbitmq"
)

Variables

This section is empty.

Functions

func ConfigureDefault

func ConfigureDefault(config Config) (driver.Messaging, error)

func ConfigureRabbitMQ

func ConfigureRabbitMQ(config Config) (driver.Messaging, error)

func New

func New(config Config) (driver.Messaging, error)

Types

type Config

type Config struct {
	Driver string
	URL    string
}

type Message

type Message struct {
	Headers Table
	Tag     uint64
	Message []byte
}

type Table

type Table map[string]any

func (Table) Validate

func (t Table) Validate() error

Jump to

Keyboard shortcuts

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