cfsync

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const TrigCFSyncRadarr common.TriggerName = "Starting Radarr Custom Format TRaSH sync."
View Source
const TrigRPSyncSonarr common.TriggerName = "Starting Sonarr Release Profile TRaSH sync."

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	// contains filtered or unexported fields
}

Action contains the exported methods for this package.

func New

func New(config *common.Config) *Action

New configures the library.

func (*Action) Create

func (a *Action) Create()

Create initializes the library.

func (*Action) Handler added in v0.4.0

func (a *Action) Handler(req *http.Request) (int, interface{})

Handler is passed into the webserver as an HTTP handler.

func (*Action) SyncRadarrCF

func (a *Action) SyncRadarrCF(event website.EventType)

SyncRadarrCF initializes a custom format sync with radarr.

func (*Action) SyncSonarrRP

func (a *Action) SyncSonarrRP(event website.EventType)

SyncSonarrRP initializes a release profile sync with sonarr.

type RadarrTrashPayload

type RadarrTrashPayload struct {
	Instance           int                         `json:"instance"`
	Name               string                      `json:"name"`
	CustomFormats      []*radarr.CustomFormat      `json:"customFormats,omitempty"`
	QualityProfiles    []*radarr.QualityProfile    `json:"qualityProfiles,omitempty"`
	QualityDefinitions []*radarr.QualityDefinition `json:"qualityDefinitions,omitempty"`
	Error              string                      `json:"error"`
}

RadarrTrashPayload is the payload sent and received to/from notifarr.com when updating custom formats for Radarr. This is used in other places, like the trash API handler in the 'client' module.

type SonarrTrashPayload

type SonarrTrashPayload struct {
	Instance           int                         `json:"instance"`
	Name               string                      `json:"name"`
	ReleaseProfiles    []*sonarr.ReleaseProfile    `json:"releaseProfiles,omitempty"`
	QualityProfiles    []*sonarr.QualityProfile    `json:"qualityProfiles,omitempty"`
	CustomFormats      []*sonarr.CustomFormat      `json:"customFormats,omitempty"`
	QualityDefinitions []*sonarr.QualityDefinition `json:"qualityDefinitions,omitempty"`
	Error              string                      `json:"error"`
}

SonarrTrashPayload is the payload sent and received to/from notifarr.com when updating custom formats for Sonarr.

Jump to

Keyboard shortcuts

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