order

package
v0.29.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: AGPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByReferenceOrder

func ByReferenceOrder(nodeIDs []flow.Identifier) func(*flow.Identity, *flow.Identity) bool

ByReferenceOrder return a function for sorting identities based on the order of the given nodeIDs

func Canonical

func Canonical(identity1 *flow.Identity, identity2 *flow.Identity) bool

Canonical represents the canonical ordering for identity lists.

func IdentifierCanonical

func IdentifierCanonical(id1 flow.Identifier, id2 flow.Identifier) bool

IdentifierCanonical is a function for sorting IdentifierList into canonical order

func IdentityListCanonical

func IdentityListCanonical(identities flow.IdentityList) bool

IdentityListCanonical takes a list of identities and check if it's ordered in canonical order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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