Documentation
¶
Index ¶
- Variables
- type MultiFileStorage
- type Segdb
- func (s *Segdb) Add(segment *Segment) error
- func (s *Segdb) Delete(id string) error
- func (s *Segdb) Get(id string) (*Segment, error)
- func (s *Segdb) GetAll(ids []string) []*Segment
- func (s *Segdb) GetIndexSize() uintptr
- func (s *Segdb) GetSegmentsCount() int
- func (s *Segdb) Index(segment *Segment, clear bool)
- func (s *Segdb) List(indexes map[string]interface{}, limit int, offset int) []*Segment
- func (s *Segdb) Load() error
- func (s *Segdb) Publish(m []*Segment) error
- func (s *Segdb) Query(m map[string]interface{}, limit int) []*Segment
- func (s *Segdb) Reindex()
- func (s *Segdb) RemoveFromIndexes(id string)
- type Segment
- type StorageInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound segemnt not found ErrNotFound = errors.New("not found") // ErrReservedIndex reserved index ErrReservedIndex = errors.New("reserved index") )
Functions ¶
This section is empty.
Types ¶
type MultiFileStorage ¶
type MultiFileStorage struct {
// contains filtered or unexported fields
}
MultiFileStorage ...
func NewMultiFileStorage ¶
func NewMultiFileStorage(storagePath string) *MultiFileStorage
NewMultiFileStorage ...
type Segdb ¶
type Segdb struct {
// contains filtered or unexported fields
}
Segdb ...
func (*Segdb) RemoveFromIndexes ¶
RemoveFromIndexes ...
Click to show internal directories.
Click to hide internal directories.