healthcheck

package
v0.0.0-...-657eab2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Healthcheck

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

Healthcheck is the main container for the app

func NewHealthcheck

func NewHealthcheck(port uint16, logLevel log.Level) (*Healthcheck, error)

NewHealthcheck returns a new instance of healthcheck

func (*Healthcheck) DNSCheckLoop

func (h *Healthcheck) DNSCheckLoop()

DNSCheckLoop runs a loop checking for DNS responses

func (*Healthcheck) OpenWebsocket

func (h *Healthcheck) OpenWebsocket() error

OpenWebsocket sets up the RPC client and subscribes to relevant topics

func (*Healthcheck) StartServer

func (h *Healthcheck) StartServer() error

StartServer starts the metrics server

Jump to

Keyboard shortcuts

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