Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoRow returns if rows is not found ErrNoRow = errors.New("not found") )
Functions ¶
This section is empty.
Types ¶
type PostgresAlert ¶
type PostgresAlert struct {
// contains filtered or unexported fields
}
PostgresAlert represent Postgres implementation for Alert storage
func (*PostgresAlert) CreateTable ¶ added in v0.8.2
func (p *PostgresAlert) CreateTable() error
func (*PostgresAlert) Get ¶
func (p *PostgresAlert) Get(alertName string) (*alert.Alert, error)
Get is an implementation of the storage interface
type PostgresKV ¶
type PostgresKV struct {
// contains filtered or unexported fields
}
PostgresKV represent the Postgres implementation of the KV storage
func (*PostgresKV) All ¶
func (p *PostgresKV) All() (map[string]string, error)
All is an implementation of the storage interface
func (*PostgresKV) CreateTable ¶ added in v0.8.2
func (p *PostgresKV) CreateTable() error
func (*PostgresKV) Delete ¶
func (p *PostgresKV) Delete(key string) error
Delete is an implementation of the storage interface
func (*PostgresKV) Get ¶
func (p *PostgresKV) Get(key string) (string, error)
Get is an implementation of the storage interface
func (*PostgresKV) Put ¶
func (p *PostgresKV) Put(key, value string) error
Put is an implementation of the storage interface
func (*PostgresKV) Upsert ¶
func (p *PostgresKV) Upsert(key, value string) error
Upsert is an implementation of the storage interface
type SQL ¶
type SQL struct {
// contains filtered or unexported fields
}
SQL implements CoreStorage with the SQL as a storage backend
Click to show internal directories.
Click to hide internal directories.