internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCompletedSubscription = errors.New("subscription is unsubscribed")

Functions

This section is empty.

Types

type ConnProvider

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

func (*ConnProvider) Conn

func (p *ConnProvider) Conn() *stomp.Conn

func (*ConnProvider) Register

func (p *ConnProvider) Register(conn *stomp.Conn)

func (*ConnProvider) Replace

func (p *ConnProvider) Replace(newConn *stomp.Conn, disconnectDelay time.Duration)

type Queue

type Queue struct {
	Name         string
	Subscription *stomp.Subscription
}

type Subscription

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

func NewSubscription

func NewSubscription(name string,
	raw *stomp.Subscription) *Subscription

func (*Subscription) Active

func (s *Subscription) Active() bool

func (*Subscription) Queue

func (s *Subscription) Queue() chan *jobworker.Job

func (*Subscription) ReadLoop

func (s *Subscription) ReadLoop(conn jobworker.Connector)

func (*Subscription) UnSubscribe

func (s *Subscription) UnSubscribe() error

Jump to

Keyboard shortcuts

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