sm_utils

package
v0.7.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.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 NodeRandomiser

type NodeRandomiser interface {
	UpdateNodeIDs([]gpa.NodeID)
	IsInitted() bool
	GetRandomOtherNodeIDs(int) []gpa.NodeID
}

func NewNodeRandomiser

func NewNodeRandomiser(me gpa.NodeID, nodeIDs []gpa.NodeID, log *logger.Logger) NodeRandomiser

func NewNodeRandomiserNoInit

func NewNodeRandomiserNoInit(me gpa.NodeID, log *logger.Logger) NodeRandomiser

Before using the returned NodeRandomiser, it must be initted: UpdateNodeIDs method must be called.

Jump to

Keyboard shortcuts

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