rewardsfilter

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 instructs the backend API to return rewards aggregations that have `address` set in a manner which matches the desired filter. Needs a companion equals 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 DateFilter

type DateFilter struct{}

DateFilter is a custom type to define filter operation on the date.

func WithDate

func WithDate() DateFilter

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

func (DateFilter) Eq

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

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

func (DateFilter) Gt

func (DateFilter) Gt(value string) *filter.Term

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

func (DateFilter) Gte

func (DateFilter) Gte(value string) *filter.Term

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

func (DateFilter) Lt

func (DateFilter) Lt(value string) *filter.Term

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

func (DateFilter) Lte

func (DateFilter) Lte(value string) *filter.Term

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

func (DateFilter) Neq

func (DateFilter) Neq(value string) *filter.Term

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

type EpochFilter

type EpochFilter struct{}

EpochFilter is a custom type to define filter operation on the epoch field.

func WithEpoch

func WithEpoch() EpochFilter

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

func (EpochFilter) Eq

func (EpochFilter) Eq(value int) *filter.Term

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

func (EpochFilter) Gt

func (EpochFilter) Gt(value int) *filter.Term

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

func (EpochFilter) Gte

func (EpochFilter) Gte(value int) *filter.Term

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

func (EpochFilter) Lt

func (EpochFilter) Lt(value int) *filter.Term

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

func (EpochFilter) Lte

func (EpochFilter) Lte(value int) *filter.Term

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

func (EpochFilter) Neq

func (EpochFilter) Neq(value int) *filter.Term

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

type PeriodEndTimeFilter

type PeriodEndTimeFilter struct{}

PeriodEndTimeFilter is a custom type to define filter operation on the period_end_time field.

func WithPeriodEndTime

func WithPeriodEndTime() PeriodEndTimeFilter

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

func (PeriodEndTimeFilter) Eq

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

func (PeriodEndTimeFilter) Gt

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

func (PeriodEndTimeFilter) Gte

func (PeriodEndTimeFilter) Gte(value time.Time) *filter.Term

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

func (PeriodEndTimeFilter) Lt

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

func (PeriodEndTimeFilter) Lte

func (PeriodEndTimeFilter) Lte(value time.Time) *filter.Term

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

Jump to

Keyboard shortcuts

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