Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrBindKVBucket ¶
func CreateOrBindKVBucket(handle *events.NatsJetstream, bucketName string, opts ...Option) (nats.KeyValue, error)
func DefaultKVConfig ¶
func DefaultKVConfig(bucketName string) *nats.KeyValueConfig
DefaultKVConfig returns a configuration with "mostly sane" defaults. Override with the following Option functions
Types ¶
type Option ¶
type Option func(c *nats.KeyValueConfig)
func WithDescription ¶
func WithReplicas ¶
func WithStorageType ¶
func WithStorageType(st nats.StorageType) Option
XXX: Not really sure we'd ever change this but...
Click to show internal directories.
Click to hide internal directories.