golift.io/starr@v1.0.0/starrcmd/prowlarr.go (about) 1 package starrcmd 2 3 /* 4 Prowlarr only has 3 events, all accounted for; 1/30/2022. 5 https://github.com/Prowlarr/Prowlarr/blob/develop/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs 6 */ 7 8 // ProwlarrApplicationUpdate is the ApplicationUpdate event. 9 type ProwlarrApplicationUpdate struct { 10 PreviousVersion string `env:"prowlarr_update_previousversion"` // 4.0.3.5875 11 NewVersion string `env:"prowlarr_update_newversion"` // 4.0.4.5909 12 Message string `env:"prowlarr_update_message"` // Prowlarr updated from 4.0.3.5875 to 4.0.4.5909 13 } 14 15 // ProwlarrHealthIssue is the HealthIssue event. 16 type ProwlarrHealthIssue struct { 17 Message string `env:"prowlarr_health_issue_message"` // some message about sme problem 18 IssueType string `env:"prowlarr_health_issue_type"` // NeverSeenOne 19 Wiki string `env:"prowlarr_health_issue_wiki"` // something 20 Level string `env:"prowlarr_health_issue_level"` // Warning 21 } 22 23 // ProwlarrTest has no members. 24 type ProwlarrTest struct{} 25 26 // GetProwlarrApplicationUpdate returns the ApplicationUpdate event data. 27 func (c *CmdEvent) GetProwlarrApplicationUpdate() (output ProwlarrApplicationUpdate, err error) { 28 return output, c.get(EventApplicationUpdate, &output) 29 } 30 31 // GetProwlarrHealthIssue returns the ApplicationUpdate event data. 32 func (c *CmdEvent) GetProwlarrHealthIssue() (output ProwlarrHealthIssue, err error) { 33 return output, c.get(EventHealthIssue, &output) 34 } 35 36 // GetProwlarrTest returns the ApplicationUpdate event data. 37 func (c *CmdEvent) GetProwlarrTest() (output ProwlarrTest, err error) { 38 return output, c.get(EventTest, &output) 39 }