datastore

package
v0.0.0-...-165bc0d Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyMigrateDirs = errors.New("datastore: empty migration directory list")

Functions

This section is empty.

Types

type Configs

type Configs struct {
	Hosts    []string `json:"hosts"`
	Keyspace string   `json:"keyspace"`
	Table    string   `json:"table"`
}

type Database

type Database interface {
	Put(event *entities.Event) error
	Get(sample *entities.Event) (*entities.Event, error)
	Scan(sample *entities.Event, query *ScanQuery) (*ScanResult, error)

	Connect() error
	Disconnect() error
	Migrate(dirs []string) error
}

type ScanQuery

type ScanQuery struct {
	Cursor string
	Filter string
}

type ScanResult

type ScanResult struct {
	Errors []error
	Events []*entities.Event
	Cursor string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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