stomp_client

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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