sqlite

package
v0.0.0-...-972e209 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerts

type Alerts struct {
	// contains filtered or unexported fields
}

func NewAlerts

func NewAlerts(db *sql.DB) (*Alerts, error)

func (*Alerts) Get

func (a *Alerts) Get(model.Fingerprint) (*types.Alert, error)

Get implements the Alerts interface.

func (*Alerts) GetPending

func (a *Alerts) GetPending() provider.AlertIterator

GetPending implements the Alerts interface.

func (*Alerts) Put

func (a *Alerts) Put(alerts ...*types.Alert) error

Put implements the Alerts interface.

func (*Alerts) Subscribe

func (a *Alerts) Subscribe() provider.AlertIterator

Subscribe implements the Alerts interface.

type Notifies

type Notifies struct {
	// contains filtered or unexported fields
}

func NewNotifies

func NewNotifies(db *sql.DB) (*Notifies, error)

func (*Notifies) Get

func (n *Notifies) Get(dest string, fps ...model.Fingerprint) ([]*types.NotifyInfo, error)

Get implements the Notifies interface.

func (*Notifies) Set

func (n *Notifies) Set(ns ...*types.NotifyInfo) error

Set implements the Notifies interface.

type Silences

type Silences struct {
	// contains filtered or unexported fields
}

func NewSilences

func NewSilences(db *sql.DB, mk types.Marker) (*Silences, error)

NewSilences returns a new Silences based on the provided SQL DB.

func (*Silences) All

func (s *Silences) All() ([]*types.Silence, error)

All implements the Silences interface.

func (*Silences) Del

func (s *Silences) Del(sid uint64) error

Del implements the Silences interface.

func (*Silences) Get

func (s *Silences) Get(sid uint64) (*types.Silence, error)

Get implements the Silences interface.

func (*Silences) Mutes

func (s *Silences) Mutes(lset model.LabelSet) bool

Mutes implements the Muter interface.

func (*Silences) Set

func (s *Silences) Set(sil *types.Silence) (uint64, error)

Set impelements the Silences interface.

Jump to

Keyboard shortcuts

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