protoless

package
v0.0.0-...-3511abf Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package protoless provides some helpers for comparing specific proto objects. It is a bridge between needing more complex sorting (not just on top-level proto keys, like apiServer.sort) and pushing queries into Bun (which takes more work).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckpointMetricNameLess

func CheckpointMetricNameLess(ai, aj *checkpointv1.Checkpoint, metricName string) bool

CheckpointMetricNameLess compares checkpoints by a metric name, falling back to report time when equal. Order makes sure nulls are always last.

func CheckpointReportTimeLess

func CheckpointReportTimeLess(a, b *checkpointv1.Checkpoint) bool

CheckpointReportTimeLess compares checkpoints by their report time.

func CheckpointSearcherMetricLess

func CheckpointSearcherMetricLess(ai, aj *checkpointv1.Checkpoint) bool

CheckpointSearcherMetricLess compares checkpoints by their searcher metric, falling back to report time when equal. Order makes sure nulls are always last.

func CheckpointSearcherMetricNullsLast

func CheckpointSearcherMetricNullsLast(ai, aj *checkpointv1.Checkpoint) (order bool, done bool)

CheckpointSearcherMetricNullsLast compares checkpoints by their searcher metric, return done if one was null and the proper ordering.

func CheckpointStepsCompletedLess

func CheckpointStepsCompletedLess(a, b *checkpointv1.Checkpoint) bool

CheckpointStepsCompletedLess compares checkpoints by their number of steps completed, falling back to report time when equal.

func CheckpointTrialIDLess

func CheckpointTrialIDLess(ai, aj *checkpointv1.Checkpoint) bool

CheckpointTrialIDLess compares checkpoints by their ID, falling back to report time when equal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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