stomp_client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 9 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
	Topic      string
	Config     config.Config
}

func NewConsumer

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

func (StompConsumer) Start

func (c StompConsumer) Start(subscribed chan bool)

type StompPublisher

type StompPublisher struct {
	Id         int
	Connection *stomp.Conn
	Topic      string
	Config     config.Config
}

func NewPublisher

func NewPublisher(cfg config.Config, id int) *StompPublisher

func (StompPublisher) Start

func (p StompPublisher) Start()

func (StompPublisher) StartFullSpeed

func (p StompPublisher) StartFullSpeed()

func (StompPublisher) StartRateLimited

func (p StompPublisher) StartRateLimited()

Jump to

Keyboard shortcuts

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