lokahiserver

package
v0.0.0-...-4305b7b Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package lokahiserver implements twirp package github.xe.lokahi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checks

type Checks struct {
	DB database.Checks
}

Checks implements service Checks.

func (*Checks) Create

func (c *Checks) Create(ctx context.Context, opts *lokahi.CreateOpts) (*lokahi.Check, error)

Create creates a new health check with the given options.

func (*Checks) Delete

func (c *Checks) Delete(ctx context.Context, cid *lokahi.CheckID) (*lokahi.Check, error)

Delete removes a check by ID and returns the data that was deleted.

func (*Checks) Get

func (c *Checks) Get(ctx context.Context, cid *lokahi.CheckID) (*lokahi.Check, error)

Get returns information on a check by ID.

func (*Checks) List

func (c *Checks) List(ctx context.Context, opts *lokahi.ListOpts) (*lokahi.ChecksPage, error)

List returns a page of checks based on a few options.

func (*Checks) Put

func (c *Checks) Put(ctx context.Context, chk *lokahi.Check) (*lokahi.Check, error)

Put updates a Check.

func (*Checks) Status

func (c *Checks) Status(ctx context.Context, cid *lokahi.CheckID) (*lokahi.CheckStatus, error)

Status returns the detailed histogram status of a check.

Jump to

Keyboard shortcuts

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