health

package
v0.0.0-...-672e050 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package health provides functions to check the status of an LND lightning node

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(twilioConfig TwilioConfig, node db.Node, lndClient *lndclient.LightningClient) error

Check node status, send a text message if user has SMS enabled

Types

type GithubLatestReleaseResponse

type GithubLatestReleaseResponse struct {
	TagName string `json:"tag_name"`
}

GithubLatestReleaseResponse is the response from the Github API

type MonitorParams

type MonitorParams struct {
	Interval   time.Duration
	NotifyTime int
}

MonitorParams contains the parameters for monitoring an LND node

type SmsDetails

type SmsDetails struct {
	To           string
	From         string
	Body         string
	TwilioClient *twilio.RestClient
}

SmsDetails contains the parameters for sending an SMS message

type TwilioConfig

type TwilioConfig struct {
	From             string
	TwilioClient     *twilio.RestClient
	TwilioAccountSID string
	TwilioAuthToken  string
}

TwilioConfig contains the parameters for sending an SMS message

Jump to

Keyboard shortcuts

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