common

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Name string
	Addr net.IP
	Meta []byte
	// contains filtered or unexported fields
}

Node holds the memberlist node structure

func (*Node) DecodeMeta

func (n *Node) DecodeMeta() error

DecodeMeta the node Meta field into its metadata

func (*Node) EncodeMeta

func (n *Node) EncodeMeta(limit int) ([]byte, error)

EncodeMeta the node metadata to bytes, in a deterministic reversible way

func (*Node) String

func (n *Node) String() string

Jump to

Keyboard shortcuts

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