names

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package names centralises every NATS resource name Packtrail uses — KV buckets, streams, subject prefixes and durable consumer names — derived from a single namespace prefix. The default prefix is "packtrail"; embedding applications can pick their own so multiple independent Packtrail deployments can share a NATS cluster without colliding.

Index

Constants

View Source
const Default = "packtrail"

Default is the namespace prefix used when none is supplied.

Variables

This section is empty.

Functions

This section is empty.

Types

type Names

type Names struct {
	Prefix string

	// KV buckets
	BucketExecutions  string
	BucketExecArchive string
	BucketLeases      string
	BucketIdxStatus   string
	BucketIdxFlow     string
	BucketResultCache string
	BucketFlows       string
	BucketPayloads    string

	// streams
	StreamEvents     string
	StreamWork       string
	StreamSignals    string
	StreamSchedule   string
	StreamDeadLetter string
	StreamHistory    string

	// subject prefixes (each followed by an execution id or routing token)
	SubjEventsPrefix     string
	SubjWorkPrefix       string
	SubjSignalPrefix     string
	SubjSchedPrefix      string
	SubjSchedFirePrefix  string
	SubjDeadLetterPrefix string
	SubjHistoryPrefix    string

	// durable consumer names
	DurEngine  string
	DurFired   string
	DurSignals string
	DurIndexer string
}

Names holds every concrete resource name for one namespace.

func New

func New(prefix string) Names

New builds the resource names for prefix. An empty prefix falls back to Default ("packtrail").

Jump to

Keyboard shortcuts

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