instance

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 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 Identifier added in v0.36.0

type Identifier [4]byte

func MustNewID added in v0.36.0

func MustNewID(bytes []byte) Identifier

func NewID added in v0.36.0

func NewID(bytes []byte) (Identifier, error)

func (Identifier) Hex added in v0.36.0

func (id Identifier) Hex() string

type Instance

type Instance struct {
	ID   Identifier
	Addr addr.Addr
}
var Blank Instance // nolint: gochecknoglobals

func MustNew

func MustNew(id Identifier, ip net.IP, port int) Instance

func New

func New(id Identifier, ip net.IP, port int) (Instance, error)

Jump to

Keyboard shortcuts

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