watchdog

package module
v0.0.0-...-4648d58 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 8 Imported by: 0

README

go-watchdog

A service that monitors the status of remote web pages to enhance CI/CD health checks.

Documentation

Index

Constants

View Source
const (
	HTTPGetRequest  = "GET"
	HTTPPostRequest = "POST"
	HTTPHeadRequest = "HEAD"
)

Variables

This section is empty.

Functions

func DefaultWatchdogRequestChecksumHandler

func DefaultWatchdogRequestChecksumHandler(requestURL, requestMethod string, requestHeader, requestCookie map[string]string) (output string)

func DefaultWatchdogResponseChecksumHandler

func DefaultWatchdogResponseChecksumHandler(responseURL, responseContent string, responseHeader, responseCookie map[string]string) (output string)

Types

type Watchdog

type Watchdog struct {
	// contains filtered or unexported fields
}

func (*Watchdog) CloseDB

func (t *Watchdog) CloseDB() (output bool)

func (*Watchdog) InitDB

func (t *Watchdog) InitDB() (output bool)

func (*Watchdog) InitDBWithFilePath

func (t *Watchdog) InitDBWithFilePath(file string) (output bool)

func (*Watchdog) InitDBWithInMemory

func (t *Watchdog) InitDBWithInMemory() (output bool)

func (*Watchdog) Watch

func (t *Watchdog) Watch(requestURL, requestMethod string, requestHeader, requestCookie map[string]string, responseURL, responseContent string, responseHeader, responseCookie map[string]string) (output bool)

type WatchdogRequestChecksumHandler

type WatchdogRequestChecksumHandler func(requestURL, requestMethod string, requestHeader, requestCookie map[string]string) string

type WatchdogResponseChecksumHandler

type WatchdogResponseChecksumHandler func(responseURL, responseBody string, responseHeader, responseCookie map[string]string) string

type WatchdogTarget

type WatchdogTarget struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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