sort

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sort provides convenience wrappers for sorting various vtadmin types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClustersBy

type ClustersBy func(c1, c2 *cluster.Cluster) bool

ClustersBy provides an interface to sort Clusters by arbitrary comparison.

func (ClustersBy) Sort

func (by ClustersBy) Sort(clusters []*cluster.Cluster)

Sort sorts a slice of Clusters by the given comparison function.

Jump to

Keyboard shortcuts

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