Documentation
¶
Index ¶
- func ComputeChecksum(messageId, payload []byte) uint32
- func CreateMessageID() []byte
- func ReadServers(filename string) ([]*nodes.ServerNode, error)
- func SerializeGetKVResponse(value []byte, version int32) *ProtocolBuffers.KVResponse
- func SerializeKVRequest(command uint32) *ProtocolBuffers.KVRequest
- func SerializeKVRequestWithKey(command uint32, key []byte) *ProtocolBuffers.KVRequest
- func SerializeKVRequestWithKeyValue(command uint32, key, value []byte) *ProtocolBuffers.KVRequest
- func SerializeKVRequestWithKeyValueVersion(command uint32, key, value []byte, version int32) *ProtocolBuffers.KVRequest
- func SerializeKVResponse(errCode uint32) *ProtocolBuffers.KVResponse
- func SerializeMembershipCountKVResponse(membershipCount int32) *ProtocolBuffers.KVResponse
- func SerializeMessage(messageId, payload []byte) *ProtocolBuffers.Msg
- func SerializeOverloadKVResponse(overloadWaitTime int32) *ProtocolBuffers.KVResponse
- func SerializePIDKVResponse() *ProtocolBuffers.KVResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeChecksum ¶
func CreateMessageID ¶
func CreateMessageID() []byte
func ReadServers ¶
func ReadServers(filename string) ([]*nodes.ServerNode, error)
func SerializeGetKVResponse ¶
func SerializeGetKVResponse(value []byte, version int32) *ProtocolBuffers.KVResponse
func SerializeKVRequest ¶
func SerializeKVRequest(command uint32) *ProtocolBuffers.KVRequest
func SerializeKVRequestWithKey ¶
func SerializeKVRequestWithKey(command uint32, key []byte) *ProtocolBuffers.KVRequest
func SerializeKVRequestWithKeyValue ¶
func SerializeKVRequestWithKeyValue(command uint32, key, value []byte) *ProtocolBuffers.KVRequest
func SerializeKVRequestWithKeyValueVersion ¶
func SerializeKVRequestWithKeyValueVersion(command uint32, key, value []byte, version int32) *ProtocolBuffers.KVRequest
func SerializeKVResponse ¶
func SerializeKVResponse(errCode uint32) *ProtocolBuffers.KVResponse
func SerializeMembershipCountKVResponse ¶
func SerializeMembershipCountKVResponse(membershipCount int32) *ProtocolBuffers.KVResponse
func SerializeMessage ¶
func SerializeMessage(messageId, payload []byte) *ProtocolBuffers.Msg
func SerializeOverloadKVResponse ¶
func SerializeOverloadKVResponse(overloadWaitTime int32) *ProtocolBuffers.KVResponse
func SerializePIDKVResponse ¶
func SerializePIDKVResponse() *ProtocolBuffers.KVResponse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.