stakesfilter

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressFilter

type AddressFilter struct{}

AddressFilter is a custom type to define filter operation on the address field.

func WithAddress

func WithAddress() AddressFilter

WithAddress creates a new filter block that has `address` as the key. Needs a companion operator to be functional (ex: WithAddress().Eq("my_address").

func (AddressFilter) Eq

func (AddressFilter) Eq(value string) *filter.Term

Eq method is a custom method to define the equals operation on the address field.

type EvaluationTimeFilter

type EvaluationTimeFilter struct{}

EvaluationTimeFilter is a custom type to define filter operation on the evaluation_time field.

func WithEvaluationTime

func WithEvaluationTime() EvaluationTimeFilter

Instructs the backend API to return rewards aggregations that have `evaluation_time` set in a manner which matches the desired filter. Needs a companion comparison operator (ex: >, <, =, etc) to be functional.

func (EvaluationTimeFilter) Eq

Eq method is a custom method to define the equals operation on the evaluation_time field.

func (EvaluationTimeFilter) Gt

Gt method is a custom method to define the greater than operation on the evaluation_time field.

func (EvaluationTimeFilter) Gte

Gte method is a custom method to define the greater than or equals operation on the evaluation_time field.

func (EvaluationTimeFilter) Lt

Lt method is a custom method to define the less than operation on the evaluation_time field.

func (EvaluationTimeFilter) Lte

Lte method is a custom method to define the less than or equals operation on the evaluation_time field.

func (EvaluationTimeFilter) Neq

Neq method is a custom method to define the not equals operation on the evaluation_time field.

Jump to

Keyboard shortcuts

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