package nats

Import Path
	/pkg/integrations/nats (on go.dev)

Dependency Relation
	imports 5 packages, and imported by 0 packages

Involved Source Files nats.go
Package-Level Functions (total 3)
Add is a helper to add a list of states to machine machID, exposed under [topic]. It will block until the response or the context expires.
ExposeMachine exposes a state machine to NATS for requests of type - GetterReq - MutationReq - WaitingReq with responses of type - GetterResp - MutationResp - WaitingResp Each state machine subscribed to a dedicated subtopic "[topic].[machineID]". Optional [queue] allows to load-balance requests across multiple subscribers. ExposeMachine allocates a goroutine for GC blocked by ctx.
Remove is a helper to remove a list of states from machine machID, exposed under [topic]. It will block until the response or the context expires.