sm_utils

package
v1.0.1-rc.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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