Documentation
¶
Index ¶
- func TeeStore(stores ...db.Storer) db.Storer
- func ZipFields(labels []string, values []string) (fields db.Fields)
- type FieldCache
- func (c *FieldCache) BlobID(blob []byte) (id uint64, ok bool)
- func (c *FieldCache) Fields(id uint64) (fields db.Fields)
- func (c *FieldCache) ID(fields db.Fields) (uint64, bool)
- func (c *FieldCache) Labels() (labels []string)
- func (c *FieldCache) Set(id uint64, fields db.Fields) db.Fields
- func (c *FieldCache) SetBlob(id uint64, blob []byte) db.Fields
- type MemoryStore
- type MemoryStorer
- type MuxScanner
- type MuxStore
- type StorerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FieldCache ¶
type FieldCache struct {
// contains filtered or unexported fields
}
FieldCache is an in memory cache of field ids
func (*FieldCache) BlobID ¶
func (c *FieldCache) BlobID(blob []byte) (id uint64, ok bool)
BlobID returns the id of raw fields
func (*FieldCache) Fields ¶
func (c *FieldCache) Fields(id uint64) (fields db.Fields)
Fields gets fields by id
func (*FieldCache) ID ¶
func (c *FieldCache) ID(fields db.Fields) (uint64, bool)
ID gets the id of fields
func (*FieldCache) Labels ¶
func (c *FieldCache) Labels() (labels []string)
Labels returns the distinct cached labels
type MemoryStore ¶
type MemoryStore map[string]*MemoryStorer
func NewMemoryStore ¶
func NewMemoryStore(events ...string) MemoryStore
type MemoryStorer ¶
type MemoryStorer struct {
// contains filtered or unexported fields
}
MemoryStorer is an in-memory EventStore for debugging
func (*MemoryStorer) Last ¶
func (m *MemoryStorer) Last() *db.Snapshot
Last retuns the last posted StoreRequest
func (*MemoryStorer) Len ¶
func (m *MemoryStorer) Len() int
Len retuns the number of stored snapshots
type MuxScanner ¶
type MuxScanner map[string]db.ScanQuerier
func (MuxScanner) Add ¶
func (m MuxScanner) Add(s db.ScanQuerier, events ...string) MuxScanner
Click to show internal directories.
Click to hide internal directories.