db

package
v0.17.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

DB ...

func AttachDB

func AttachDB(ctx context.Context, l *zap.Logger, dbPath string) (*DB, error)

AttachDB ...

func NewDB

func NewDB(ctx context.Context, l *zap.Logger, c *config.Config, dbPath string) (*DB, error)

NewDB ...

func (*DB) Cat

func (d *DB) Cat(cond string) chan parser.Log

Cat ...

func (*DB) Count added in v0.15.0

func (d *DB) Count(groups []string, matches []string) ([][]string, error)

func (*DB) GetColumnMaxLength

func (d *DB) GetColumnMaxLength(colName ...string) (int, error)

GetColumnMaxLength ...

func (*DB) GetHosts

func (d *DB) GetHosts() ([]string, error)

GetHosts ...

func (*DB) GetMetaAll added in v0.16.0

func (d *DB) GetMetaAll() ([]resultMeta, error)

func (*DB) GetTagMaxLength added in v0.9.0

func (d *DB) GetTagMaxLength() (int, error)

func (*DB) GetTags added in v0.9.0

func (d *DB) GetTags() ([]string, error)

GetTags ...

func (*DB) GetTargetIdAndTags added in v0.9.0

func (d *DB) GetTargetIdAndTags() (map[int64][]string, error)

func (*DB) In

func (d *DB) In() chan parser.Log

In ...

func (*DB) SetMeta added in v0.16.0

func (d *DB) SetMeta(key string, value string) error

func (*DB) StartInsert

func (d *DB) StartInsert()

StartInsert ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL