package
1.4.0
Repository: https://github.com/krotik/eliasdb.git
Documentation: pkg.go.dev

# Functions

NewDefaultStateInfo creates a new DefaultStateInfo.
NewMemberManager create a new MemberManager object.
NewMemStateInfo creates a new MemStateInfo.

# Constants

Known cluster locks */.
ConfigClusterSecret is the secret which authorizes a cluster member (the secret must never be send directly over the network) */.
ConfigMemberName is the name of the cluster member */.
ConfigReplicationFactor is the number of times a given datum must be stored redundently.
ConfigRPC is the PRC network interface for the local cluster manager */.
Error message if a member was not reachable.
URL to the cluster terminal of the member.
Data request object.
Lock name which a member requests to take.
Name for a member.
Rpc address and port for a member.
StateInfo object as a map.
Required argument which identifies the target cluster member.
Client token which is used for authorization checks.
List of all possible RPC functions.
List of all possible RPC functions.
List of all possible RPC functions.
List of all possible RPC functions.
List of all possible RPC functions.
List of all possible RPC functions.
List of all possible RPC functions.
List of all possible RPC functions.
List of all possible RPC functions.
List of all possible RPC functions.
List of failed peers.
List of known cluster members.
Replication factor of the cluster.
Timestamp of state info.
Previous timestamp of state info.

# Variables

DefaultConfig is the defaut configuration */.
DialTimeout is the dial timeout for RPC connections */.
Cluster related error types */.
Cluster related error types */.
Cluster related error types */.
Cluster related error types */.
Cluster related error types */.
Cluster related error types */.
Cluster related error types */.
Cluster related error types */.
Cluster related error types */.
Cluster related error types */.
FreqHousekeeping is the frequency of running housekeeping tasks (ms) */.
LogDebug is called if a debug message is logged in the cluster code (by default disabled) */.
LogInfo is called if an info message is logged in the cluster code */.
LogNull is a discarding logger to be used for disabling loggers */.
MemberErrorExceptions map to exclude members from simulated member errors (only used for testing) */.
MemberErrors map for simulated member errors (only used for testing) */.
MsiRetFlush nil or the error which should be returned by a Flush call */.

# Structs

Client is the client for the RPC cluster API of a cluster member.
DefaultStateInfo is the default state info which uses a file to persist its data.
Error is a cluster related error */.
MemberManager is the management object for a cluster member.
MemberToken is used to authenticate a member in the cluster */.
MemStateInfo is a state info object which does not persist its data.
Server is the RPC exposed cluster API of a cluster member.

# Interfaces

StateInfo models a state object which stores cluster related data.

# Type aliases

Logger is a function which processes log messages from the cluster */.
RequestArgument is used to identify arguments in a RPC call */.
RPCFunction is used to identify the called function in a RPC call */.