util

package
v0.0.0-...-3a733ff Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	Idx  peerpb.PeerID
	Host string
	Port int
}

Addr represents an indexed network address.

func ParseHostfile

func ParseHostfile(filename string, defaultPort int) ([]Addr, error)

ParseHostfile parses the hostfile file, returning a list of indexed addresses.

func (Addr) AddrStr

func (a Addr) AddrStr() string

AddrStr returns a string representation of the network address.

Jump to

Keyboard shortcuts

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