urlcheck

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const InvalidResultCode = 999

Variables

This section is empty.

Functions

func DoRequest

func DoRequest(urlRequest string, timeout time.Duration, client *http.Client) (int, string)

Perform the requet of the header for a given URL

Types

type Settings

type Settings struct {
	Common *cfg.Common
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Widget

type Widget struct {
	view.TextWidget

	PreparedTemplate *template.Template // the test template shared across the refreshes
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, settings *Settings) *Widget

NewWidget creates and returns an instance of Widget

func (*Widget) FormatResult

func (widget *Widget) FormatResult() string

Format the parsed results accordingly to the app style

func (*Widget) PrepareTemplate

func (widget *Widget) PrepareTemplate()

Prepare the text template at the moment of the widget creation and stores it in the widget instance

func (*Widget) Refresh

func (widget *Widget) Refresh()

Refresh updates the onscreen contents of the widget

Jump to

Keyboard shortcuts

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