checkapp

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 36 Imported by: 0

Documentation

Overview

Package checkapp provides a suite of small procedures to check integration URLs and commands. This is used by all the double-green check marks on the client UI.

Index

Constants

This section is empty.

Variables

View Source
var ErrBadIndex = errors.New("index provided has no configuration data")

Functions

func Command added in v0.9.0

func Command(ctx context.Context, input *Input) (string, int)

func Deluge added in v0.9.0

func Deluge(ctx context.Context, config apps.DelugeConfig) (string, int)

func Endpoint added in v0.9.0

func Endpoint(ctx context.Context, input *Input) (string, int)

func Lidarr added in v0.9.0

func Lidarr(ctx context.Context, config apps.StarrConfig) (string, int)

func MySQL added in v0.9.0

func MySQL(ctx context.Context, config snapshot.MySQLConfig) (string, int)

func NZBGet added in v0.9.0

func NZBGet(ctx context.Context, app apps.NZBGetConfig) (string, int)

func Nvidia added in v0.9.0

func Nvidia(ctx context.Context, config snapshot.NvidiaConfig) (string, int)

func Plex added in v0.9.0

func Plex(ctx context.Context, app apps.PlexConfig) (string, int)

func Prowlarr added in v0.9.0

func Prowlarr(ctx context.Context, config apps.StarrConfig) (string, int)

func Qbit added in v0.9.0

func Qbit(ctx context.Context, config apps.QbitConfig) (string, int)

func Radarr added in v0.9.0

func Radarr(ctx context.Context, config apps.StarrConfig) (string, int)

func Readarr added in v0.9.0

func Readarr(ctx context.Context, config apps.StarrConfig) (string, int)

func Rtorrent added in v0.9.0

func Rtorrent(_ context.Context, config apps.RtorrentConfig) (string, int)

func SabNZB added in v0.9.0

func SabNZB(ctx context.Context, app apps.SabNZBConfig) (string, int)

func Sonarr added in v0.9.0

func Sonarr(ctx context.Context, config apps.StarrConfig) (string, int)

func SvcHTTP added in v0.9.0

func SvcHTTP(ctx context.Context, svc services.ServiceConfig) (string, int)

func SvcPing added in v0.9.0

func SvcPing(ctx context.Context, svc services.ServiceConfig) (string, int)

func SvcProcess added in v0.9.0

func SvcProcess(ctx context.Context, svc services.ServiceConfig) (string, int)

func SvcTCP added in v0.9.0

func SvcTCP(ctx context.Context, svc services.ServiceConfig) (string, int)

func Tautulli added in v0.9.0

func Tautulli(ctx context.Context, app apps.TautulliConfig) (string, int)

func Test

func Test(orig *configfile.Config, writer http.ResponseWriter, req *http.Request)

func Transmission added in v0.9.0

func Transmission(ctx context.Context, config apps.XmissionConfig) (string, int)

Types

type CheckAllInput added in v0.9.0

type CheckAllInput struct {
	Sonarr       []apps.StarrConfig    `json:"sonarr"`
	Radarr       []apps.StarrConfig    `json:"radarr"`
	Readarr      []apps.StarrConfig    `json:"readarr"`
	Lidarr       []apps.StarrConfig    `json:"lidarr"`
	Prowlarr     []apps.StarrConfig    `json:"prowlarr"`
	Plex         []apps.PlexConfig     `json:"plex"`
	Tautulli     []apps.TautulliConfig `json:"tautulli"`
	NZBGet       []apps.NZBGetConfig   `json:"nzbget"`
	Deluge       []apps.DelugeConfig   `json:"deluge"`
	Qbit         []apps.QbitConfig     `json:"qbit"`
	Rtorrent     []apps.RtorrentConfig `json:"rtorrent"`
	Transmission []apps.XmissionConfig `json:"transmission"`
	SabNZB       []apps.SabNZBConfig   `json:"sabnzb"`
}

type CheckAllOutput added in v0.9.0

type CheckAllOutput struct {
	Sonarr    []TestResult `json:"Sonarr"`
	Radarr    []TestResult `json:"Radarr"`
	Readarr   []TestResult `json:"Readarr"`
	Lidarr    []TestResult `json:"Lidarr"`
	Prowlarr  []TestResult `json:"Prowlarr"`
	Plex      []TestResult `json:"Plex"`
	Tautulli  []TestResult `json:"Tautulli"`
	NZBGet    []TestResult `json:"NZBGet"`
	Deluge    []TestResult `json:"Deluge"`
	Qbit      []TestResult `json:"Qbittorrent"`
	Rtorrent  []TestResult `json:"Rtorrent"`
	Xmiss     []TestResult `json:"Transmission"`
	SabNZB    []TestResult `json:"SabNZB"`
	TimeMS    int64        `json:"timeMS"`
	Elapsed   int64        `json:"elapsed"`
	Workers   int          `json:"workers"`
	Instances int          `json:"instances"`
}

CheckAllOutput is the output from a check all instances test. The JSON keys are used for human display, so ya.

func CheckAll added in v0.9.0

func CheckAll(ctx context.Context, input *CheckAllInput) *CheckAllOutput

CheckAll checks all the starr, media and downloader apps and returns the results.

type Input

type Input struct {
	Real  *configfile.Config
	Post  *configfile.Config
	Type  string
	Args  url.Values
	Index int
}

type TestResult added in v0.9.0

type TestResult struct {
	Status  int              `json:"status"`
	Msg     string           `json:"message"`
	Elapsed string           `json:"elapsed"`
	Config  apps.ExtraConfig `json:"config"`
}

TestResult is the result from an instance test.

Jump to

Keyboard shortcuts

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