service

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockingService

type BlockingService struct {
	Provider messaging.MessagingProvider
}

func NewBlockingService added in v0.1.4

func NewBlockingService(provider messaging.MessagingProvider) *BlockingService

Creates new BlockingService with a messaging service provider Which will be used as the transport protocol

func (BlockingService) RequestResponseBlock

func (b BlockingService) RequestResponseBlock(
	requestTopic string,
	responseTopic string,
	payload string,
	headers string,
) (*messaging.SendAndReceiveResponse, error)

This function pushes the payload and headers to requestTopic, and waits for a message in responseTopic with the same key.

Jump to

Keyboard shortcuts

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