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
Click to show internal directories.
Click to hide internal directories.