Documentation ¶
Index ¶
- Variables
- func Plugin() plugin.Plugin
- type SqliteStore
- func (s *SqliteStore) Close() error
- func (s *SqliteStore) CtxQueryEntries(ctx context.Context, table string) (iterator.Iterator, error)
- func (s *SqliteStore) CtxSink(ctx context.Context, iter iterator.Iterator, table string) error
- func (s *SqliteStore) QueryEntries(table string) (iterator.Iterator, error)
- func (s *SqliteStore) Sink(iter iterator.Iterator, table string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadTable = errors.New("invalid table name")
)
View Source
var (
ErrUnexpectedColumnType = errors.New("unexpected column type")
)
Functions ¶
Types ¶
type SqliteStore ¶
type SqliteStore struct {
// contains filtered or unexported fields
}
SqliteStore is a store for LogEntries using Sqlite3 as a storage engine.
func NewStore ¶
func NewStore(log hclog.Logger, filename string) (*SqliteStore, error)
func (*SqliteStore) Close ¶
func (s *SqliteStore) Close() error
func (*SqliteStore) CtxQueryEntries ¶
func (*SqliteStore) QueryEntries ¶
func (s *SqliteStore) QueryEntries(table string) (iterator.Iterator, error)
Click to show internal directories.
Click to hide internal directories.