subscriber

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

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