store

package
v0.0.3-alpha3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstraintStore

type ConstraintStore interface {
	GetAll() ([]*tarianpb.Constraint, error)
	FindByNamespace(namespace string) ([]*tarianpb.Constraint, error)
	NamespaceAndNameExist(namespace, name string) (bool, error)
	Add(*tarianpb.Constraint) error
	RemoveByNamespaceAndName(namespace, name string) error
}

type EventStore

type EventStore interface {
	GetAll(limit uint) ([]*tarianpb.Event, error)
	FindByNamespace(namespace string, limit uint) ([]*tarianpb.Event, error)
	FindWhereAlertNotSent() ([]*tarianpb.Event, error)
	Add(*tarianpb.Event) error
	UpdateAlertSent(uid string) error
}

Jump to

Keyboard shortcuts

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