Documentation
¶
Index ¶
- func ClosestNodeToKey(key []byte, id1 []byte, id2 []byte) int
- func DeserializeMessage(conn *net.TCPConn) (*[]structs.Node, error)
- func DisplayHelp()
- func GetFullNodeClient(ip *string, port *int) pb.FullNodeClient
- func GetIpFromHost() string
- func GetKBucketFromNodeArray(nodes *[]structs.Node) *pb.KBucket
- func GetSha1Hash(data string) []byte
- func NewID(ip string, port int) ([]byte, error)
- func SerializeMessage(q *[]structs.Node) (*[]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClosestNodeToKey ¶ added in v0.4.4
func DisplayHelp ¶ added in v0.3.0
func DisplayHelp()
func GetFullNodeClient ¶ added in v0.4.4
func GetFullNodeClient(ip *string, port *int) pb.FullNodeClient
func GetIpFromHost ¶ added in v0.3.0
func GetIpFromHost() string
func GetKBucketFromNodeArray ¶ added in v0.4.4
func GetSha1Hash ¶ added in v0.4.7
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.