Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOnlyOneSubscriberAllowed = fmt.Errorf("only one subscriber allowed")
Functions ¶
This section is empty.
Types ¶
type NatsSubscriber ¶
type NatsSubscriber struct {
// contains filtered or unexported fields
}
func NewNatsSubscriber ¶
func NewNatsSubscriber(tableName string, sc stan.Conn, db *pg.DB) *NatsSubscriber
func (*NatsSubscriber) Close ¶
func (n *NatsSubscriber) Close() error
func (*NatsSubscriber) ReSendSubscriptionEvents ¶ added in v0.0.3
func (n *NatsSubscriber) ReSendSubscriptionEvents() error
func (*NatsSubscriber) Subscribe ¶
func (n *NatsSubscriber) Subscribe(subject string, f Subscriber, threads uint64, chanLength uint64, ef func(error)) error
type Subscriber ¶
type Subscriber func(ch <-chan uint64)
Click to show internal directories.
Click to hide internal directories.