stomp_client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 12 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
}

func NewConsumer

func NewConsumer(cfg config.Config, id int) *StompConsumer

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)

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) Send added in v0.2.0

func (p StompPublisher) Send()

func (StompPublisher) Start

func (p StompPublisher) Start(ctx context.Context)

func (StompPublisher) StartFullSpeed

func (p StompPublisher) StartFullSpeed(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