workflowpluginbroker

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package workflowpluginbroker provides the NATS broker workflow plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
	Publish(subject string, data []byte) error
	Subscribe(subject string, handler func([]byte)) error
	SubscribeWithSubject(subject string, handler func(subject string, data []byte)) error
	SubscribeDurable(subject, consumerName string, handler func([]byte)) error
}

Broker is the public interface for the NATS broker.

func NewBrokerPlugin

func NewBrokerPlugin(name string, cfg map[string]any) Broker

NewBrokerPlugin creates a new NATS broker plugin instance from the given config. Config keys: url (string), stream (string), jetstream (bool).

Directories

Path Synopsis
cmd
workflow-plugin-broker command
Command workflow-plugin-broker is a standalone gRPC plugin binary that exposes a NATS JetStream broker module to the workflow engine.
Command workflow-plugin-broker is a standalone gRPC plugin binary that exposes a NATS JetStream broker module to the workflow engine.
Package internal provides the NATS JetStream broker module for cross-instance game event delivery.
Package internal provides the NATS JetStream broker module for cross-instance game event delivery.

Jump to

Keyboard shortcuts

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