interfaces

package
v0.0.0-...-3a8d8de Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatsClient

type NatsClient interface {
	GetObjectStoreNames(optFilter ...*regexp.Regexp) ([]string, error)
	GetStreamNames(optFilter ...*regexp.Regexp) ([]string, error)
	CreateStream(streamConfig *entity.StreamConfig) error
	CreateObjectStore(objectStore string) error
	CreateKeyValueStore(keyValueStore string) error
	UpdateConfiguration(keyValueStore string, keyValueConfig map[string]string) error
	DeleteStream(stream string) error
	DeleteObjectStore(stream string) error
	DeleteKeyValueStore(keyValueStore string) error
}

type NatsManager

type NatsManager interface {
	CreateStreams(productID, versionTag string, workflows []entity.Workflow) (entity.WorkflowsStreamsConfig, error)
	CreateObjectStores(productID, versionTag string, workflows []entity.Workflow) (entity.WorkflowsObjectStoresConfig, error)
	CreateVersionKeyValueStores(productID, versionTag string, workflows []entity.Workflow) (*entity.VersionKeyValueStores, error)
	CreateGlobalKeyValueStore(productID string) (string, error)
	UpdateKeyValueStoresConfiguration(configurations []entity.KeyValueConfiguration) error
	DeleteStreams(productID, versionTag string) error
	DeleteObjectStores(productID, versionTag string) error
	DeleteVersionKeyValueStores(productID, versionTag string, workflows []entity.Workflow) error
	DeleteGlobalKeyValueStore(productID string) error
}

Jump to

Keyboard shortcuts

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