Utils

package
v0.0.0-...-a271c09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeChecksum

func ComputeChecksum(messageId, payload []byte) uint32

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL