Documentation
¶
Index ¶
- type Db
- func (db *Db) AddCheck(ctx context.Context, check *sm.Check) error
- func (db *Db) AddProbe(ctx context.Context, probe *sm.Probe, token []byte) error
- func (db *Db) AddTenant(ctx context.Context, tenant *sm.Tenant) error
- func (db *Db) DeleteCheck(ctx context.Context, id int64) error
- func (db *Db) DeleteProbe(ctx context.Context, id int64) error
- func (db *Db) DeleteTenant(ctx context.Context, id int64) error
- func (db *Db) FindProbeByID(ctx context.Context, id int64) (*sm.Probe, error)
- func (db *Db) FindProbeIDByToken(ctx context.Context, token []byte) (int64, error)
- func (db *Db) GetCheck(ctx context.Context, id int64) (*sm.Check, error)
- func (db *Db) GetProbe(ctx context.Context, id int64) (*sm.Probe, error)
- func (db *Db) GetTenant(ctx context.Context, id int64) (*sm.Tenant, error)
- func (db *Db) ListChecks(ctx context.Context) ([]sm.Check, error)
- func (db *Db) ListChecksForProbe(ctx context.Context, id int64) ([]sm.Check, error)
- func (db *Db) ListProbes(ctx context.Context) ([]sm.Probe, error)
- func (db *Db) ListTenants(ctx context.Context) ([]sm.Tenant, error)
- func (db *Db) UpdateCheck(ctx context.Context, check *sm.Check) (*sm.Check, error)
- func (db *Db) UpdateProbe(ctx context.Context, probe *sm.Probe) (*sm.Probe, error)
- func (db *Db) UpdateTenant(ctx context.Context, tenant *sm.Tenant) (*sm.Tenant, error)
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 (*Db) FindProbeByID ¶
func (*Db) FindProbeIDByToken ¶
func (*Db) ListChecksForProbe ¶
func (*Db) UpdateCheck ¶
func (*Db) UpdateProbe ¶
Click to show internal directories.
Click to hide internal directories.