lokahiadminserver

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: 17 Imported by: 0

Documentation

Overview

Package lokahiadminserver implements twirp package github.xe.lokahi.admin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalRun

type LocalRun struct {
	HC *http.Client

	Cs  database.Checks
	Rs  database.Runs
	Ris database.RunInfos

	Nc *nats.Conn
	// contains filtered or unexported fields
}

func (*LocalRun) Checks

func (l *LocalRun) Checks(ctx context.Context, cids *lokahiadmin.CheckIDs) (*lokahiadmin.Run, error)

func (*LocalRun) DoCheck

func (l *LocalRun) DoCheck(ctx context.Context, rid string, ck *database.Check) (*lokahiadmin.Health, database.Check)

DoCheck executes a HTTP healthcheck given a run id and check.

func (*LocalRun) Minutely

func (l *LocalRun) Minutely() error

func (*LocalRun) Run

func (*LocalRun) SendWebhook

func (l *LocalRun) SendWebhook(ctx context.Context, ck *lokahi.Check, health *lokahiadmin.Health, done func())

SendWebhook sends a webhook to a given target by check id.

func (*LocalRun) Stats

type Runner

type Runner interface {
	Run(context.Context, *lokahiadmin.CheckIDs) (*lokahiadmin.Run, error)
}

Jump to

Keyboard shortcuts

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