Documentation ¶
Index ¶
- type Event
- type EventType
- type Filter
- type FilterList
- type Index
- func (i *Index) Delete(obj *Object)
- func (i *Index) DeleteNoNotify(obj *Object)
- func (i *Index) GetObjectByID(id string) *Object
- func (i *Index) SearchByObject(obj *Object, filters ...Filter) []*Object
- func (i *Index) SearchByObjectID(id string, filters ...Filter) []*Object
- func (i *Index) SearchByRect(rect Rect, filters ...Filter) []*Object
- func (i *Index) Subscribe(chSize int) *Subscription
- func (i *Index) Unsubscribe(sub *Subscription)
- func (i *Index) Upsert(obj *Object)
- func (i *Index) UpsertNoNotify(obj *Object)
- type Object
- type Point
- type Rect
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterList ¶ added in v1.2.0
type FilterList []Filter
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) DeleteNoNotify ¶
func (*Index) GetObjectByID ¶
func (*Index) SearchByObject ¶
func (*Index) SearchByObjectID ¶
func (*Index) Subscribe ¶
func (i *Index) Subscribe(chSize int) *Subscription
func (*Index) Unsubscribe ¶
func (i *Index) Unsubscribe(sub *Subscription)
func (*Index) UpsertNoNotify ¶
type Rect ¶
func (*Rect) ToRTreeRect ¶
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
func (*Subscription) Events ¶
func (s *Subscription) Events() <-chan Event
func (*Subscription) ID ¶ added in v1.0.5
func (s *Subscription) ID() string
func (*Subscription) SetBounds ¶
func (s *Subscription) SetBounds(bounds Rect)
func (*Subscription) SetFilters ¶ added in v1.0.2
func (s *Subscription) SetFilters(filters ...Filter)
func (*Subscription) TrackID ¶ added in v1.1.0
func (s *Subscription) TrackID(id string)
func (*Subscription) UntrackID ¶ added in v1.1.0
func (s *Subscription) UntrackID(id string)
Click to show internal directories.
Click to hide internal directories.