scylla

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConnectFailed      = errors.New("datastore.scylla: could not establish connection to hosts")
	ErrMigrationScanFiles = errors.New("datastore.scylla: got error when scanned migration file")
	ErrMigrationNoFile    = errors.New("datastore.scylla: no migration file was found")
	ErrMigrationRunFailed = errors.New("datastore.scylla: could not run migration")
)

Functions

func New

Types

type Scylla

type Scylla struct {
	Configs *datastore.Configs
	Logger  *zap.SugaredLogger
	// contains filtered or unexported fields
}

func (*Scylla) Connect

func (db *Scylla) Connect() error

func (*Scylla) Disconnect

func (db *Scylla) Disconnect() error

func (*Scylla) Get

func (db *Scylla) Get(sample *entities.Event) (*entities.Event, error)

func (*Scylla) Migrate

func (db *Scylla) Migrate(dirs []string) error

func (*Scylla) Put

func (db *Scylla) Put(event *entities.Event) error

func (*Scylla) Scan

func (db *Scylla) Scan(sample *entities.Event, query *datastore.ScanQuery) (*datastore.ScanResult, error)

Jump to

Keyboard shortcuts

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