Documentation ¶
Index ¶
- type AddressFilter
- type EvaluationTimeFilter
- func (EvaluationTimeFilter) Eq(value time.Time) *filter.Term
- func (EvaluationTimeFilter) Gt(value time.Time) *filter.Term
- func (EvaluationTimeFilter) Gte(value time.Time) *filter.Term
- func (EvaluationTimeFilter) Lt(value time.Time) *filter.Term
- func (EvaluationTimeFilter) Lte(value time.Time) *filter.Term
- func (EvaluationTimeFilter) Neq(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 creates a new filter block that has `address` as the key. Needs a companion operator to be functional (ex: WithAddress().Eq("my_address").
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 ¶
func (EvaluationTimeFilter) Eq(value time.Time) *filter.Term
Eq method is a custom method to define the equals operation on the evaluation_time field.
func (EvaluationTimeFilter) Gt ¶
func (EvaluationTimeFilter) Gt(value time.Time) *filter.Term
Gt method is a custom method to define the greater than operation on the evaluation_time field.
func (EvaluationTimeFilter) Gte ¶
func (EvaluationTimeFilter) Gte(value time.Time) *filter.Term
Gte method is a custom method to define the greater than or equals operation on the evaluation_time field.
func (EvaluationTimeFilter) Lt ¶
func (EvaluationTimeFilter) Lt(value time.Time) *filter.Term
Lt method is a custom method to define the less than operation on the evaluation_time field.