idutil

package
v0.1.0-gogo Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IDFromAddress

func IDFromAddress(addr string) (uint32, error)

IDFromAddress generates an id for the given TCP address using the same method as the gorums Manager type uses for generating its global node identifiers. The id is generated by resolving the TCP address and hashing the "ip:port" combination using 32-bit FNV-1.

func IDFromHostPort

func IDFromHostPort(host, port string) (uint32, error)

IDFromHostPort generates an id for the given TCP address using the same method as the gorums Manager type uses for generating its global node identifiers. The id is generated by resolving the TCP address and hashing the "ip:port" combination using 32-bit FNV-1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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