gousustomp

package module
v2.0.0-...-b942c1c Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "stomp"

Variables

This section is empty.

Functions

func NewService

func NewService(ctx gousu.IContext) gousu.IService

Types

type IService

type IService interface {
	gousu.IService

	SubscribeToQueue(queue string) (chan *stomp.Message, *stomp.Subscription, error)
	Ack(msg *stomp.Message) error
	PublishToQueue(queue string, contentType string, body []byte) error
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) Ack

func (s *Service) Ack(msg *stomp.Message) error

func (*Service) Health

func (s *Service) Health() error

func (*Service) Name

func (s *Service) Name() string

func (*Service) PublishToQueue

func (s *Service) PublishToQueue(queue string, contentType string, body []byte) error

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

func (*Service) SubscribeToQueue

func (s *Service) SubscribeToQueue(queue string) (chan *stomp.Message, *stomp.Subscription, error)

Jump to

Keyboard shortcuts

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