Documentation
¶
Index ¶
- func DummyMultiAddrs(membershipIn *trantorpbtypes.Membership) (*trantorpbtypes.Membership, error)
- func FromFile(f *os.File) (*trantorpbtypes.Membership, error)
- func FromFileName(fileName string) (*trantorpbtypes.Membership, error)
- func GetIDs(membership *trantorpbtypes.Membership) []t.NodeID
- func GetIPs(membership *trantorpbtypes.Membership) (map[t.NodeID]string, error)
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.
Click to show internal directories.
Click to hide internal directories.