robotbroker

package
v0.0.0-...-9fbc374 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONSUMER_GROUP = "robot-"

	SUBJECT_TASK  = "task"
	SUBJECT_ROBOT = "robot"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RobotBrokerInterface

type RobotBrokerInterface interface {
	Close()
	CreateNewJetStream() (nats.JetStreamContext, error)
}

RobotBrokerInterface defines contracts for a message broker

func NewRobotBrokerService

func NewRobotBrokerService(
	logger *zap.SugaredLogger,
	clientName string,
	natsUrl string) (RobotBrokerInterface, error)

NewRobotBrokerService creates an concrete instance of RobotBrokerInterface

Directories

Path Synopsis
Package mock_robotbroker is a generated GoMock package.
Package mock_robotbroker is a generated GoMock package.

Jump to

Keyboard shortcuts

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