healthcheck

package
v0.0.0-...-7d74a43 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 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 CassandraConn

type CassandraConn struct {
	Host string
}

CassandraConn struct implements methods for Cassandra connection satisfying Checker interface

func (CassandraConn) String

func (CassandraConn) String() string

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 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