pub

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher struct {
	bindings.PubSubChannel
}

Publisher's channel(for now)

func NewPublisher

func NewPublisher(conn *amqp.Connection) (*Publisher, error)

Create New publisher from connection(No way, right?) it should be defered btw

func (*Publisher) Close

func (p *Publisher) Close() error

Want to close publisher early? That's for you

func (*Publisher) Publish

func (p *Publisher) Publish(ctx context.Context, pack PublishingPackage) error

Publishes whatever you want wherever you want

type PublishingPackage added in v0.0.2

type PublishingPackage struct {
	Exchange  string
	Key       string
	Mandatory bool
	Immediate bool
	Message   amqp.Publishing
}

Jump to

Keyboard shortcuts

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