membership

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DummyMultiAddrs

func DummyMultiAddrs(membershipIn *trantorpbtypes.Membership) (*trantorpbtypes.Membership, error)

DummyMultiAddrs augments a membership by deterministically generated host keys based on node IDs. The node IDs must be convertable to numbers, otherwise DummyMultiAddrs returns an error.

func FromFile

func FromFile(f *os.File) (*trantorpbtypes.Membership, error)

FromFile reads a membership for a file. It expects a text file containing valid JSON with the following format. (The strange field names are a result of trying to be compatible with the format used by Lotus/Eudico.) TODO: Use a better format for the membership, maybe even if it's incompatible with Eudico.

func FromFileName

func FromFileName(fileName string) (*trantorpbtypes.Membership, error)

func GetIDs

func GetIDs(membership *trantorpbtypes.Membership) []t.NodeID

func GetIPs

func GetIPs(membership *trantorpbtypes.Membership) (map[t.NodeID]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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