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 ¶
- Variables
- func Command(ctx context.Context, input *Input) (string, int)
- func Deluge(ctx context.Context, config apps.DelugeConfig) (string, int)
- func Endpoint(ctx context.Context, input *Input) (string, int)
- func Lidarr(ctx context.Context, config apps.StarrConfig) (string, int)
- func MySQL(ctx context.Context, config snapshot.MySQLConfig) (string, int)
- func NZBGet(ctx context.Context, app apps.NZBGetConfig) (string, int)
- func Nvidia(ctx context.Context, config snapshot.NvidiaConfig) (string, int)
- func Plex(ctx context.Context, app apps.PlexConfig) (string, int)
- func Prowlarr(ctx context.Context, config apps.StarrConfig) (string, int)
- func Qbit(ctx context.Context, config apps.QbitConfig) (string, int)
- func Radarr(ctx context.Context, config apps.StarrConfig) (string, int)
- func Readarr(ctx context.Context, config apps.StarrConfig) (string, int)
- func Rtorrent(_ context.Context, config apps.RtorrentConfig) (string, int)
- func SabNZB(ctx context.Context, app apps.SabNZBConfig) (string, int)
- func Sonarr(ctx context.Context, config apps.StarrConfig) (string, int)
- func SvcHTTP(ctx context.Context, svc services.ServiceConfig) (string, int)
- func SvcPing(ctx context.Context, svc services.ServiceConfig) (string, int)
- func SvcProcess(ctx context.Context, svc services.ServiceConfig) (string, int)
- func SvcTCP(ctx context.Context, svc services.ServiceConfig) (string, int)
- func Tautulli(ctx context.Context, app apps.TautulliConfig) (string, int)
- func Test(orig *configfile.Config, writer http.ResponseWriter, req *http.Request)
- func Transmission(ctx context.Context, config apps.XmissionConfig) (string, int)
- type CheckAllInput
- type CheckAllOutput
- type Input
- type TestResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadIndex = errors.New("index provided has no configuration data")
Functions ¶
func SvcProcess ¶ added in v0.9.0
func Test ¶
func Test(orig *configfile.Config, writer http.ResponseWriter, req *http.Request)
func Transmission ¶ added in v0.9.0
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.
Click to show internal directories.
Click to hide internal directories.