database

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 6 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
}

func New

func New(db *database.DB) *DB

func (*DB) Delete

func (db *DB) Delete(_ context.Context, alert model.Alert) error

func (*DB) FindAll

func (db *DB) FindAll(_ context.Context, filter FilterFn) ([]model.Alert, error)

func (*DB) Keys

func (db *DB) Keys() ([]string, error)

func (*DB) Store

func (db *DB) Store(_ context.Context, alert model.Alert) error

type FilterFn

type FilterFn func(alert model.Alert) bool

Jump to

Keyboard shortcuts

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