Documentation ¶
Index ¶
- type Filter
- type FilterSet
- func (f *FilterSet) AddBlobs(b blid.Blid)
- func (f *FilterSet) AddLatitudeLess(l float64)
- func (f *FilterSet) AddLatitudeMore(l float64)
- func (f *FilterSet) AddLongitudeLess(l float64)
- func (f *FilterSet) AddLongitudeMore(l float64)
- func (f *FilterSet) AddMimeType(m string)
- func (f *FilterSet) AddTag(t string)
- func (f *FilterSet) SetLocation(l string)
- func (f *FilterSet) SetSizeLess(s int64)
- func (f *FilterSet) SetSizeMore(s int64)
- func (f *FilterSet) SetTimeAfter(t time.Time)
- func (f *FilterSet) SetTimeBefore(t time.Time)
- type UnresolvedFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { Positive *FilterSet `json:"p,omitempty"` Negative *FilterSet `json:"n,omitempty"` OrderReverse bool `json:"O,omitempty"` // For resume token work ResumeLastMtime *int64 `json:"r,omitempty"` ResumeLastBlob *string `json:"R,omitempty"` }
func FromSearchQuery ¶
func FromSerialized ¶
FromSerialized constructs a filter from the output of the Serialize() call.
func (*Filter) SetResumeLastBlob ¶
func (*Filter) SetResumeLastMtime ¶
type FilterSet ¶
type FilterSet struct { Before *time.Time `json:"t,omitempty"` After *time.Time `json:"T,omitempty"` SizeMore *int64 `json:"s,omitempty"` SizeLess *int64 `json:"S,omitempty"` Tags *[]string `json:"x,omitempty"` MimeTypes *[]string `json:"y,omitempty"` Blobs *[]string `json:"B,omitempty"` LatitudeLess *[]float64 `json:"a,omitempty"` LatitudeMore *[]float64 `json:"A,omitempty"` LongitudeLess *[]float64 `json:"o,omitempty"` LongitudeMore *[]float64 `json:"O,omitempty"` // contains filtered or unexported fields }
func (*FilterSet) AddLatitudeLess ¶
func (*FilterSet) AddLatitudeMore ¶
func (*FilterSet) AddLongitudeLess ¶
func (*FilterSet) AddLongitudeMore ¶
func (*FilterSet) AddMimeType ¶
func (*FilterSet) SetLocation ¶
func (*FilterSet) SetSizeLess ¶
func (*FilterSet) SetSizeMore ¶
func (*FilterSet) SetTimeAfter ¶
func (*FilterSet) SetTimeBefore ¶
type UnresolvedFilter ¶
type UnresolvedFilter struct {
Location *string
}
Click to show internal directories.
Click to hide internal directories.