daemon

package
v0.0.0-...-ade0808 Latest Latest
Warning

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

Go to latest
Published: May 21, 2017 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToMarshalBSON   = "Failed to marshal BSON"
	ErrFailedToUnmarshalBSON = "Failed to unmarshal BSON"
	ErrFailedToDoCheck       = "Failed to do checking"
	ErrFailedToStoreResult   = "Failed to store result"
)

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	*checkup.Checkup
	CheckInterval   time.Duration
	CheckersService checkup.CheckersService
	EventService    checkup.EventService
}

ServiceHandler is a grpc server and checkup server

func (*Daemon) Run

func (d *Daemon) Run()

Run the main loop for checkup to check endpoints and should be run as a goroutine

Jump to

Keyboard shortcuts

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