Documentation
¶
Index ¶
- type Store
- func (s *Store) LevelCounts() (map[string]int, error)
- func (s *Store) Query(opts logstore.QueryOpts) ([]logstore.LogEntry, error)
- func (s *Store) Services() ([]string, error)
- func (s *Store) Tail(ctx context.Context, filter logstore.TailFilter) <-chan logstore.LogEntry
- func (s *Store) Write(entry logstore.LogEntry) error
- func (s *Store) WriteBatch(entries []logstore.LogEntry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an in-memory implementation of logstore.LogStore using a circular buffer and a broadcast pattern for live tailing.
func (*Store) LevelCounts ¶
LevelCounts returns the count of entries by level.
func (*Store) Tail ¶
Tail returns a channel that streams matching log entries in real time. The channel is closed when ctx is cancelled.
Click to show internal directories.
Click to hide internal directories.