Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPublisherIsNotInitialized = errors.New("publisher is not initialized")
)
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware func(next RoundTripper) RoundTripper
func PersistentMode ¶
func PersistentMode() Middleware
type Option ¶
type Option func(publisher *Publisher)
func WithMiddlewares ¶
func WithMiddlewares(middlewares ...Middleware) Option
type Publisher ¶
type Publisher struct { Exchange string RoutingKey string Middlewares []Middleware // contains filtered or unexported fields }
func (*Publisher) SetRoundTripper ¶
func (p *Publisher) SetRoundTripper(roundTripper RoundTripper)
type RoundTripper ¶
type RoundTripperFunc ¶
type RoundTripperFunc func(ctx context.Context, exchange string, routingKey string, msg *amqp.Publishing) error
func (RoundTripperFunc) Publish ¶
func (f RoundTripperFunc) Publish(ctx context.Context, exchange string, routingKey string, msg *amqp.Publishing) error
Click to show internal directories.
Click to hide internal directories.