cfsync

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TrigCFSyncRadarr common.TriggerName = "Starting Radarr CF 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) 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"`
	Error           string                   `json:"error"`
	NewMaps         *cfMapIDpayload          `json:"newMaps,omitempty"`
}

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"`
	Error           string                   `json:"error"`
	NewMaps         *cfMapIDpayload          `json:"newMaps,omitempty"`
}

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