address

package
v1.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 7 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssembleClientAddress

func AssembleClientAddress(identifier string, pubkey []byte) string

AssembleClientAddress returns the client address string from identifier and pubkey

func IsPrivateIP

func IsPrivateIP(ip net.IP) bool

IsPrivateIP returns if an IP address is a private IP address

func MakeAddressString

func MakeAddressString(pubKey []byte, identifier string) string

func ParseClientAddress

func ParseClientAddress(addrStr string) ([]byte, []byte, string, error)

ParseClientAddress parse an address string to Chord address, public key, and identifier

func ShouldRejectAddr

func ShouldRejectAddr(localAddr, remoteAddr string) bool

ShouldRejectAddr returns if remoteAddr should be rejected by localAddr

Types

This section is empty.

Jump to

Keyboard shortcuts

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