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 IndexedMap primitive.
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 indexedmap type.

# Structs

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

# Interfaces

Client provides an API for creating IndexedMaps.
GetOption is an option for the Get method.
IndexedMap is a distributed linked map.
RemoveOption is an option for the Remove method.
ReplaceOption is an option for the Replace method.
SetOption is an option for the Put method.
WatchOption is an option for the Watch method.

# Type aliases

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