package
0.0.0-20250312071251-83357680a8b0
Repository: https://github.com/couchbase/gometa.git
Documentation: pkg.go.dev

# Functions

Compare epoch1 and epoch2.
Compare function to compare epoch1 with epoch2 return common.EQUAL if epoch1 is the same as epoch2 return common.MORE_RECENT if epoch1 is more recent return common.LESS_RECENT if epoch1 is less recent This is just to prepare in the future if we support rolling over the epoch (but it will also require changes to comparing txnid as well).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Return true if txid2 is logically next in sequence from txid1.
No description provided by the author
No description provided by the author
Take a Packet and create a serialized byte array.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Create a new PeerMessenger.
Create a new PeerPipe.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Start a new PeerListener for listening to new connection request for processing messages.
No description provided by the author
Take a byte stream and create a Packet .
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

wait this much for new votes before completing leader election.
max timeout for a ballot (millisecond).
timeout for a ballot (millisecond).
Boostrap value of accepted epoch.
Boostrap value of current epoch.
Boostrap value of last committed txid.
Boostrap value of last logged txid.
Server Config Param : AcceptedEpoch.
Server Config Param : CurrentEpoch.
Server Config Param : LastCommittedTxid.
Server Config Param : LastLoggedTxid.
Server Config Param : Magic Number.
Server Config Param : Magic Number Value.
port for receving election votes from peer.
network protocol for election vote transport.
timeout for leader (millisecond).
Max value for counter.
maximum size of datagram.
Max value for epoch.
maximum number of followers.
maximum number of participants.
maximum number of peers.
maximum number of proposals.
max backoff time for retry (millisecond).
port for receving message from peer (e.g.
network protocol for message transport.
Minimum Forestdb size.
Forest db name for metadata store.
backoff time for retry (millisecond).
timeout for synchronization (millisecond).
TCP keep alive period.
Time to wait for the commit log before returning an error.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
A wrapper of a UPD message (content + sender addr).
No description provided by the author
PeerConn encapsulates TCP/TLS connection, its corresponding PeerPipe and the first non-auth packet received by the auth function, if any.
PeerListener - Listener for TCP connection If there is a new connection request, send the new connection through connch.
PeerMessenger sends packets between peers.
PeerPipe is to maintain the messaging channel between two peers.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author