Documentation ¶
Index ¶
- type Operator
- type Time
- type TimestampMatcher
- func After(value *Time) *TimestampMatcher
- func Before(value *Time) *TimestampMatcher
- func Between(before *Time, after *Time) *TimestampMatcher
- func Day(value *Time) *TimestampMatcher
- func Format(value *Time, format string) *TimestampMatcher
- func Hour(value *Time) *TimestampMatcher
- func Minute(value *Time) *TimestampMatcher
- func Second(value *Time) *TimestampMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator is en enum over types of TimestampMatcher
func (Operator) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface
func (*Operator) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler interface
type Time ¶
func (*Time) UnmarshalJSON ¶
type TimestampMatcher ¶
type TimestampMatcher struct { Operator Operator `json:"operator"` Value timestampValue `json:"value"` }
TimestampMatcher matches a *timestamppb.Timestamp based on an operator and a value
func After ¶
func After(value *Time) *TimestampMatcher
After constructs a new TimestampMatcher that matches using the After operator
func Before ¶
func Before(value *Time) *TimestampMatcher
Before constructs a new TimestampMatcher that matches using the Before operator
func Between ¶
func Between(before *Time, after *Time) *TimestampMatcher
Between constructs a new TimestampMatcher that matches using the Between operator
func Day ¶
func Day(value *Time) *TimestampMatcher
Day constructs a new TimestampMatcher that matches using the Day operator
func Format ¶
func Format(value *Time, format string) *TimestampMatcher
Format constructs a new TimestampMatcher that matches using the Format operator
func Hour ¶
func Hour(value *Time) *TimestampMatcher
Hour constructs a new TimestampMatcher that matches using the Hour operator
func Minute ¶
func Minute(value *Time) *TimestampMatcher
Minute constructs a new TimestampMatcher that matches using the Minute operator
func Second ¶
func Second(value *Time) *TimestampMatcher
Second constructs a new TimestampMatcher that matches using the Second operator
func (TimestampMatcher) MarshalJSON ¶
func (m TimestampMatcher) MarshalJSON() ([]byte, error)
Marshal implements json.Marshaler
func (*TimestampMatcher) Match ¶
func (m *TimestampMatcher) Match(value *timestamppb.Timestamp) error
Match attempts to match a *timestamppb.Timestamp based on the TimestampMatcher
func (*TimestampMatcher) UnmarshalJSON ¶
func (m *TimestampMatcher) UnmarshalJSON(b []byte) error
Unmarshal implements json.Unmarshaler