kv

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteKV

func DeleteKV(nc *nats.Conn, kv nats.KeyValue) error

func LoadKV added in v0.26.2

func LoadKV(nc *nats.Conn, name string) (nats.KeyValue, error)

func NewKV

func NewKV(nc *nats.Conn, name string, create bool, opts ...Option) (nats.KeyValue, error)

Types

type Option

type Option func(*options)

Option configures a KV bucket

func WithHistory

func WithHistory(h uint8) Option

func WithMaxBucketSize

func WithMaxBucketSize(s int64) Option

func WithMaxValueSize

func WithMaxValueSize(s int32) Option

func WithReplicas

func WithReplicas(r int) Option

func WithTTL

func WithTTL(ttl time.Duration) Option

func WithoutDirectAccess added in v0.26.2

func WithoutDirectAccess() Option

Jump to

Keyboard shortcuts

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