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
BucketLeases string
BucketIdxStatus string
BucketIdxFlow string
BucketResultCache string
BucketFlows string
// streams
StreamEvents string
StreamWork string
StreamSignals string
StreamSchedule string
// subject prefixes (each followed by an execution id or routing token)
SubjEventsPrefix string
SubjWorkPrefix string
SubjSignalPrefix string
SubjSchedPrefix string
SubjSchedFirePrefix string
// durable consumer names
DurEngine string
DurFired string
DurSignals string
DurIndexer string
}
Names holds every concrete resource name for one namespace.
Click to show internal directories.
Click to hide internal directories.