Documentation ¶
Index ¶
- type AddressFilter
- type DateFilter
- type EpochFilter
- type PeriodEndTimeFilter
- func (PeriodEndTimeFilter) Eq(value time.Time) *filter.Term
- func (PeriodEndTimeFilter) Gt(value time.Time) *filter.Term
- func (PeriodEndTimeFilter) Gte(value time.Time) *filter.Term
- func (PeriodEndTimeFilter) Lt(value time.Time) *filter.Term
- func (PeriodEndTimeFilter) Lte(value time.Time) *filter.Term
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").
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.
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.
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 ¶
func (PeriodEndTimeFilter) Eq(value time.Time) *filter.Term
Eq method is a custom method to define the equals operation on the period_end_time field.
func (PeriodEndTimeFilter) Gt ¶
func (PeriodEndTimeFilter) Gt(value time.Time) *filter.Term
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.