Skip to content

Commit

Permalink
Remove prowlarr type file (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall authored Mar 18, 2022
1 parent 512e1e9 commit 21fe6e4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 38 deletions.
34 changes: 34 additions & 0 deletions prowlarr/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,44 @@ package prowlarr
import (
"context"
"fmt"
"time"

"golift.io/starr"
)

// SystemStatus is the /api/v1/system/status endpoint.
type SystemStatus struct {
Version string `json:"version"`
BuildTime time.Time `json:"buildTime"`
IsDebug bool `json:"isDebug"`
IsProduction bool `json:"isProduction"`
IsAdmin bool `json:"isAdmin"`
IsUserInteractive bool `json:"isUserInteractive"`
StartupPath string `json:"startupPath"`
AppData string `json:"appData"`
OsName string `json:"osName"`
OsVersion string `json:"osVersion"`
IsNetCore bool `json:"isNetCore"`
IsMono bool `json:"isMono"`
IsLinux bool `json:"isLinux"`
IsOsx bool `json:"isOsx"`
IsWindows bool `json:"isWindows"`
IsDocker bool `json:"isDocker"`
Mode string `json:"mode"`
Branch string `json:"branch"`
Authentication string `json:"authentication"`
DatabaseType string `json:"databaseType"`
DatabaseVersion string `json:"databaseVersion"`
MigrationVersion int `json:"migrationVersion"`
URLBase string `json:"urlBase"`
RuntimeVersion string `json:"runtimeVersion"`
RuntimeName string `json:"runtimeName"`
StartTime time.Time `json:"startTime"`
PackageVersion string `json:"packageVersion"`
PackageAuthor string `json:"packageAuthor"`
PackageUpdateMechanism string `json:"packageUpdateMechanism"`
}

// GetSystemStatus returns system status.
func (p *Prowlarr) GetSystemStatus() (*SystemStatus, error) {
return p.GetSystemStatusContext(context.Background())
Expand Down
38 changes: 0 additions & 38 deletions prowlarr/type.go

This file was deleted.

0 comments on commit 21fe6e4

Please sign in to comment.