publish

package
v0.0.0-...-c8817f1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelWithPublishJson

type ChannelWithPublishJson interface {
	PublishJSON(exchange, key string, mandatory, immediate bool, objectToBeSent interface{}) error
}

type Immediate

type Immediate interface {
	WithImmediate(bool) Publish
	Publish
}

type Mandatory

type Mandatory interface {
	WithMandatory(mandatory bool) Immediate
	Publish
}

type Publish

type Publish interface {
	Publish(objectToBeSent interface{})
}

type PublishStruct

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

func (*PublishStruct) Publish

func (p *PublishStruct) Publish(objectToBeSent interface{})

func (*PublishStruct) WithExchange

func (p *PublishStruct) WithExchange(exchangeName string) WithRoutingKey

func (*PublishStruct) WithImmediate

func (p *PublishStruct) WithImmediate(immediate bool) Publish

func (*PublishStruct) WithMandatory

func (p *PublishStruct) WithMandatory(mandatory bool) Immediate

func (*PublishStruct) WithRoutingKey

func (p *PublishStruct) WithRoutingKey(key string) Mandatory

type WithExchange

type WithExchange interface {
	WithExchange(exchangeName string) WithRoutingKey
}

func WithChannel

func WithChannel(channel ChannelWithPublishJson) WithExchange

type WithRoutingKey

type WithRoutingKey interface {
	WithRoutingKey(key string) Mandatory
}

Jump to

Keyboard shortcuts

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