order

package
v0.31.9-compress-badge... Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

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 added in v0.17.0

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

Canonical represents the canonical ordering for identity lists.

func IdentifierCanonical added in v0.26.1

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

IdentifierCanonical is a function for sorting IdentifierList into canonical order

func IdentityListCanonical added in v0.26.1

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