types

package
v0.0.0-...-649f594 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID uint64

ID represents a generic identifier which is canonically stored as an uint64 but is typically represented as a base-16 string for input/output

func IDFromString

func IDFromString(s string) (ID, error)

IDFromString attempts to create an ID from a base-16 string.

func (ID) String

func (i ID) String() string

type IDSlice

type IDSlice []ID

IDSlice implements the sort interface

func (IDSlice) Len

func (p IDSlice) Len() int

func (IDSlice) Less

func (p IDSlice) Less(i, j int) bool

func (IDSlice) Swap

func (p IDSlice) Swap(i, j int)

type Peers

type Peers []peer

Jump to

Keyboard shortcuts

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