package
0.7.2
Repository: https://github.com/lucasbfernandes/go-client.git
Documentation: pkg.go.dev

# Functions

IfNotSet sets the value if the entry is not yet set.
IfVersion sets the required version for optimistic concurrency control.
New creates a new partitioned Map.
WithCache returns an option that enables caching for a Map.
WithDefault sets the default value to return if the key is not present.
WithFilter returns a watch option that filters the watch events.
WithReplay returns a watch option that enables replay of watch events.

# Constants

EventInserted indicates a key was newly created in the map.
EventNone indicates the event is not a change event.
EventRemoved indicates a key was removed from the map.
EventUpdated indicates the value of an existing key was changed.
Type is the map type.

# Structs

Entry
Entry is a versioned key/value pair.
Event is a map change event.
Filter is a watch filter configuration.
NotSetOption is a PutOption that sets the value only if it's not already set.
VersionOption is an implementation of PutOption and RemoveOption to specify the version for concurrency control.

# Interfaces

Client provides an API for creating Maps.
GetOption is an option for the Get method.
Map is a distributed set of keys and values.
Option is an option for a Map instance.
PutOption is an option for the Put method.
RemoveOption is an option for the Remove method.
WatchOption is an option for the Watch method.

# Type aliases

EventType is the type of a map event.
Version is an entry version.