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)
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
Click to show internal directories.
Click to hide internal directories.