healthcheck

package
v0.0.0-...-d33463d Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package healthcheck of the Dataflow kit checks if specified services are alive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckServices

func CheckServices(hc ...Checker) (status map[string]string)

CheckServices checks if services passed as parameters are alive. It returns the map containing serviceName and appropriate status

Types

type Checker

type Checker interface {

	//String returns service name
	String() string
	// contains filtered or unexported methods
}

Checker is the key interface of healthChecker. All other structs implement methods wchich satisfy that interface.

type ChromeConn

type ChromeConn struct {
	Host string
}

ChromeConn struct implements methods for Headless chrome connection satisfying Checker interface

func (ChromeConn) String

func (ChromeConn) String() string

type FetchConn

type FetchConn struct {
	Host string
}

FetchConn struct implements methods satisfying Checker interface

func (FetchConn) String

func (FetchConn) String() string

type MongoConn

type MongoConn struct {
	Host string
}

MongoConn struct implements methods for MongoDB connection satisfying Checker interface

func (MongoConn) String

func (MongoConn) String() string

type ParseConn

type ParseConn struct {
	Host string
}

ParseConn struct implements methods satisfying Checker interface

func (ParseConn) String

func (ParseConn) String() string

Jump to

Keyboard shortcuts

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