Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDeliveryAlreadyHandled = errors.New("delivery already handled")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string Queue string ConnOpts []ConnOption Concurrency int Middlewares []Middleware SubscriptionOpts []SubscriptionOption Observer Observer ReconnectTimeout time.Duration // contains filtered or unexported fields }
type ConnOption ¶
type ConnOption = func(*stomp.Conn) error
type Delivery ¶
type Delivery struct {
// contains filtered or unexported fields
}
func NewDelivery ¶
type HandlerFunc ¶
type Middleware ¶
type NoopObserver ¶
type NoopObserver struct { }
func (NoopObserver) BeginConsuming ¶
func (n NoopObserver) BeginConsuming(c *Consumer)
func (NoopObserver) CloseDone ¶
func (n NoopObserver) CloseDone(c *Consumer)
func (NoopObserver) CloseStart ¶
func (n NoopObserver) CloseStart(c *Consumer)
func (NoopObserver) Error ¶
func (n NoopObserver) Error(c *Consumer, err error)
type Option ¶
type Option func(c *Config)
func WithConcurrency ¶
func WithConnectionOptions ¶
func WithConnectionOptions(connOpts ...ConnOption) Option
func WithMiddlewares ¶
func WithMiddlewares(middlewares ...Middleware) Option
func WithObserver ¶
func WithSubscriptionOptions ¶
func WithSubscriptionOptions(subOpts ...SubscriptionOption) Option
type SubscriptionOption ¶
Click to show internal directories.
Click to hide internal directories.