workflowpluginbroker

package module
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 2 Imported by: 0

README

workflow-plugin-broker

⚠️ Experimental — This plugin compiles and passes its unit tests but has not been validated in any active GoCodeAlone-internal production deployment. Use with caution. Please open an issue if you adopt it so we can promote it to verified status.

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