Documentation
¶
Index ¶
- type StompConsumer
- type StompPublisher
- func (p *StompPublisher) Connect()
- func (p *StompPublisher) Send() error
- func (p *StompPublisher) Start(ctx context.Context)
- func (p *StompPublisher) StartFullSpeed(ctx context.Context)
- func (p *StompPublisher) StartIdle(ctx context.Context)
- func (p *StompPublisher) StartRateLimited(ctx context.Context)
- func (p *StompPublisher) Stop(reason string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StompConsumer ¶
type StompConsumer struct { Id int Connection *stomp.Conn Subscription *stomp.Subscription Topic string Config config.Config // contains filtered or unexported fields }
func NewConsumer ¶
func NewConsumer(cfg config.Config, id int) *StompConsumer
func (*StompConsumer) Connect ¶ added in v0.7.0
func (c *StompConsumer) Connect()
func (*StompConsumer) Start ¶
func (c *StompConsumer) Start(ctx context.Context, subscribed chan bool)
func (*StompConsumer) Stop ¶ added in v0.3.0
func (c *StompConsumer) Stop(reason string)
func (*StompConsumer) Subscribe ¶ added in v0.7.0
func (c *StompConsumer) Subscribe()
type StompPublisher ¶
type StompPublisher struct { Id int Connection *stomp.Conn Topic string Config config.Config // contains filtered or unexported fields }
func NewPublisher ¶
func NewPublisher(cfg config.Config, id int) *StompPublisher
func (*StompPublisher) Connect ¶ added in v0.7.0
func (p *StompPublisher) Connect()
func (*StompPublisher) Send ¶ added in v0.2.0
func (p *StompPublisher) Send() error
func (*StompPublisher) Start ¶
func (p *StompPublisher) Start(ctx context.Context)
func (*StompPublisher) StartFullSpeed ¶
func (p *StompPublisher) StartFullSpeed(ctx context.Context)
func (*StompPublisher) StartIdle ¶ added in v0.5.0
func (p *StompPublisher) StartIdle(ctx context.Context)
func (*StompPublisher) StartRateLimited ¶
func (p *StompPublisher) StartRateLimited(ctx context.Context)
func (*StompPublisher) Stop ¶ added in v0.3.0
func (p *StompPublisher) Stop(reason string)
Click to show internal directories.
Click to hide internal directories.