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) FullNodeCheckLoop ¶
func (h *Healthcheck) FullNodeCheckLoop()
FullNodeCheckLoop runs a loop checking if full node ports are open
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
Click to show internal directories.
Click to hide internal directories.