db

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCapabilityParams

type AddCapabilityParams struct {
	ID         string `json:"id"`
	ServiceID  string `json:"serviceId"`
	Capability string `json:"capability"`
}

type AddIndexerTagParams

type AddIndexerTagParams struct {
	IndexerID string `json:"indexerId"`
	TagID     string `json:"tagId"`
}

type AddServiceTagParams

type AddServiceTagParams struct {
	ServiceID string `json:"serviceId"`
	TagID     string `json:"tagId"`
}

type ConfigEntry

type ConfigEntry struct {
	ID        string `json:"id"`
	Namespace string `json:"namespace"`
	Key       string `json:"key"`
	Value     string `json:"value"`
	UpdatedAt string `json:"updatedAt"`
}

type ConfigSubscription

type ConfigSubscription struct {
	ID        string `json:"id"`
	ServiceID string `json:"serviceId"`
	Namespace string `json:"namespace"`
}

type CreateAssignmentParams

type CreateAssignmentParams struct {
	ID        string `json:"id"`
	IndexerID string `json:"indexerId"`
	ServiceID string `json:"serviceId"`
	Overrides string `json:"overrides"`
}

type CreateDownloadClientParams

type CreateDownloadClientParams struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Protocol  string `json:"protocol"`
	Enabled   bool   `json:"enabled"`
	Priority  int32  `json:"priority"`
	Host      string `json:"host"`
	Port      int32  `json:"port"`
	UseSsl    bool   `json:"useSsl"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	Category  string `json:"category"`
	Directory string `json:"directory"`
	Settings  string `json:"settings"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

type CreateFilterPresetParams

type CreateFilterPresetParams struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Filters   string `json:"filters"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

type CreateIndexerParams

type CreateIndexerParams struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Enabled   bool   `json:"enabled"`
	Priority  int32  `json:"priority"`
	Url       string `json:"url"`
	ApiKey    string `json:"apiKey"`
	Settings  string `json:"settings"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

type CreateQualityProfileParams

type CreateQualityProfileParams struct {
	ID                   string         `json:"id"`
	Name                 string         `json:"name"`
	CutoffJson           string         `json:"cutoffJson"`
	QualitiesJson        string         `json:"qualitiesJson"`
	UpgradeAllowed       bool           `json:"upgradeAllowed"`
	UpgradeUntilJson     sql.NullString `json:"upgradeUntilJson"`
	MinCustomFormatScore int32          `json:"minCustomFormatScore"`
	UpgradeUntilCfScore  int32          `json:"upgradeUntilCfScore"`
	CreatedAt            string         `json:"createdAt"`
	UpdatedAt            string         `json:"updatedAt"`
}

type CreateServiceParams

type CreateServiceParams struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	Type       string `json:"type"`
	ApiUrl     string `json:"apiUrl"`
	ApiKey     string `json:"apiKey"`
	HealthUrl  string `json:"healthUrl"`
	Version    string `json:"version"`
	Status     string `json:"status"`
	LastSeen   string `json:"lastSeen"`
	Registered string `json:"registered"`
	Metadata   string `json:"metadata"`
}

type CreateTagParams

type CreateTagParams struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type DeleteAssignmentParams

type DeleteAssignmentParams struct {
	IndexerID string `json:"indexerId"`
	ServiceID string `json:"serviceId"`
}

type DeleteConfigEntryParams

type DeleteConfigEntryParams struct {
	Namespace string `json:"namespace"`
	Key       string `json:"key"`
}

type DownloadClient

type DownloadClient struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Protocol  string `json:"protocol"`
	Enabled   bool   `json:"enabled"`
	Priority  int32  `json:"priority"`
	Host      string `json:"host"`
	Port      int32  `json:"port"`
	UseSsl    bool   `json:"useSsl"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	Category  string `json:"category"`
	Directory string `json:"directory"`
	Settings  string `json:"settings"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

type FilterPreset

type FilterPreset struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Filters   string `json:"filters"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

type GetAssignmentOverridesParams

type GetAssignmentOverridesParams struct {
	IndexerID string `json:"indexerId"`
	ServiceID string `json:"serviceId"`
}

type GetConfigEntryParams

type GetConfigEntryParams struct {
	Namespace string `json:"namespace"`
	Key       string `json:"key"`
}

type GetServiceByNameAndTypeParams

type GetServiceByNameAndTypeParams struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type Indexer

type Indexer struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Enabled   bool   `json:"enabled"`
	Priority  int32  `json:"priority"`
	Url       string `json:"url"`
	ApiKey    string `json:"apiKey"`
	Settings  string `json:"settings"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

type IndexerAssignment

type IndexerAssignment struct {
	ID        string `json:"id"`
	IndexerID string `json:"indexerId"`
	ServiceID string `json:"serviceId"`
	Overrides string `json:"overrides"`
}

type IndexerTag

type IndexerTag struct {
	IndexerID string `json:"indexerId"`
	TagID     string `json:"tagId"`
}

type QualityProfile

type QualityProfile struct {
	ID                   string         `json:"id"`
	Name                 string         `json:"name"`
	CutoffJson           string         `json:"cutoffJson"`
	QualitiesJson        string         `json:"qualitiesJson"`
	UpgradeAllowed       bool           `json:"upgradeAllowed"`
	UpgradeUntilJson     sql.NullString `json:"upgradeUntilJson"`
	MinCustomFormatScore int32          `json:"minCustomFormatScore"`
	UpgradeUntilCfScore  int32          `json:"upgradeUntilCfScore"`
	CreatedAt            string         `json:"createdAt"`
	UpdatedAt            string         `json:"updatedAt"`
}

type Querier

type Querier interface {
	// Capabilities
	AddCapability(ctx context.Context, arg AddCapabilityParams) error
	AddIndexerTag(ctx context.Context, arg AddIndexerTagParams) error
	AddServiceTag(ctx context.Context, arg AddServiceTagParams) error
	CountIndexersForTag(ctx context.Context, tagID string) (int64, error)
	CountServicesByType(ctx context.Context, type_ string) (int64, error)
	// Counts
	CountServicesForTag(ctx context.Context, tagID string) (int64, error)
	// Assignments
	CreateAssignment(ctx context.Context, arg CreateAssignmentParams) (IndexerAssignment, error)
	CreateDownloadClient(ctx context.Context, arg CreateDownloadClientParams) (DownloadClient, error)
	CreateFilterPreset(ctx context.Context, arg CreateFilterPresetParams) (FilterPreset, error)
	CreateIndexer(ctx context.Context, arg CreateIndexerParams) (Indexer, error)
	CreateQualityProfile(ctx context.Context, arg CreateQualityProfileParams) (QualityProfile, error)
	CreateService(ctx context.Context, arg CreateServiceParams) (Service, error)
	CreateTag(ctx context.Context, arg CreateTagParams) (Tag, error)
	DeleteAssignment(ctx context.Context, arg DeleteAssignmentParams) error
	DeleteAssignmentsByIndexer(ctx context.Context, indexerID string) error
	DeleteAssignmentsByService(ctx context.Context, serviceID string) error
	DeleteCapabilities(ctx context.Context, serviceID string) error
	DeleteConfigEntry(ctx context.Context, arg DeleteConfigEntryParams) error
	DeleteConfigNamespace(ctx context.Context, namespace string) error
	DeleteDownloadClient(ctx context.Context, id string) error
	DeleteFilterPreset(ctx context.Context, id string) error
	DeleteFilterPresetByName(ctx context.Context, name string) error
	DeleteIndexer(ctx context.Context, id string) error
	DeleteQualityProfile(ctx context.Context, id string) error
	DeleteService(ctx context.Context, id string) error
	DeleteSubscriptionsByService(ctx context.Context, serviceID string) error
	DeleteTag(ctx context.Context, id string) error
	GetAssignmentOverrides(ctx context.Context, arg GetAssignmentOverridesParams) (string, error)
	GetConfigEntry(ctx context.Context, arg GetConfigEntryParams) (ConfigEntry, error)
	GetDownloadClient(ctx context.Context, id string) (DownloadClient, error)
	GetFilterPreset(ctx context.Context, id string) (FilterPreset, error)
	GetFilterPresetByName(ctx context.Context, name string) (FilterPreset, error)
	GetIndexer(ctx context.Context, id string) (Indexer, error)
	GetQualityProfile(ctx context.Context, id string) (QualityProfile, error)
	GetService(ctx context.Context, id string) (Service, error)
	GetServiceByNameAndType(ctx context.Context, arg GetServiceByNameAndTypeParams) (Service, error)
	GetSharedMediaHandling(ctx context.Context) (SharedMediaHandling, error)
	GetTag(ctx context.Context, id string) (Tag, error)
	GetTagByName(ctx context.Context, name string) (Tag, error)
	ListAllConfig(ctx context.Context) ([]ConfigEntry, error)
	ListAssignmentsByIndexer(ctx context.Context, indexerID string) ([]IndexerAssignment, error)
	ListAssignmentsByService(ctx context.Context, serviceID string) ([]IndexerAssignment, error)
	ListCapabilities(ctx context.Context, serviceID string) ([]string, error)
	ListConfigByNamespace(ctx context.Context, namespace string) ([]ConfigEntry, error)
	ListConfigNamespaces(ctx context.Context) ([]string, error)
	ListDownloadClients(ctx context.Context) ([]DownloadClient, error)
	ListDownloadClientsByProtocol(ctx context.Context, protocol string) ([]DownloadClient, error)
	ListEnabledDownloadClients(ctx context.Context) ([]DownloadClient, error)
	ListEnabledIndexers(ctx context.Context) ([]Indexer, error)
	ListFilterPresets(ctx context.Context) ([]FilterPreset, error)
	ListIndexerTagIDs(ctx context.Context, indexerID string) ([]string, error)
	ListIndexers(ctx context.Context) ([]Indexer, error)
	ListIndexersForService(ctx context.Context, serviceID string) ([]Indexer, error)
	ListOnlineServices(ctx context.Context) ([]Service, error)
	ListQualityProfiles(ctx context.Context) ([]QualityProfile, error)
	ListServiceTagIDs(ctx context.Context, serviceID string) ([]string, error)
	ListServices(ctx context.Context) ([]Service, error)
	ListServicesByCapability(ctx context.Context, capability string) ([]Service, error)
	ListServicesByType(ctx context.Context, type_ string) ([]Service, error)
	ListSubscribersByNamespace(ctx context.Context, namespace string) ([]Service, error)
	ListSubscriptionsByService(ctx context.Context, serviceID string) ([]string, error)
	ListTags(ctx context.Context) ([]Tag, error)
	SetConfigEntry(ctx context.Context, arg SetConfigEntryParams) (ConfigEntry, error)
	// Indexer tags
	SetIndexerTags(ctx context.Context, indexerID string) error
	// Service tags
	SetServiceTags(ctx context.Context, serviceID string) error
	// Subscriptions
	Subscribe(ctx context.Context, arg SubscribeParams) error
	Unsubscribe(ctx context.Context, arg UnsubscribeParams) error
	UpdateDownloadClient(ctx context.Context, arg UpdateDownloadClientParams) (DownloadClient, error)
	UpdateFilterPreset(ctx context.Context, arg UpdateFilterPresetParams) (FilterPreset, error)
	UpdateIndexer(ctx context.Context, arg UpdateIndexerParams) (Indexer, error)
	UpdateQualityProfile(ctx context.Context, arg UpdateQualityProfileParams) (QualityProfile, error)
	UpdateService(ctx context.Context, arg UpdateServiceParams) (Service, error)
	UpdateServiceHeartbeat(ctx context.Context, arg UpdateServiceHeartbeatParams) error
	UpdateServiceStatus(ctx context.Context, arg UpdateServiceStatusParams) error
	UpdateSharedMediaHandling(ctx context.Context, arg UpdateSharedMediaHandlingParams) (SharedMediaHandling, error)
	UpdateTag(ctx context.Context, arg UpdateTagParams) (Tag, error)
	UpsertFilterPreset(ctx context.Context, arg UpsertFilterPresetParams) (FilterPreset, error)
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AddCapability

func (q *Queries) AddCapability(ctx context.Context, arg AddCapabilityParams) error

Capabilities

func (*Queries) AddIndexerTag

func (q *Queries) AddIndexerTag(ctx context.Context, arg AddIndexerTagParams) error

func (*Queries) AddServiceTag

func (q *Queries) AddServiceTag(ctx context.Context, arg AddServiceTagParams) error

func (*Queries) CountIndexersForTag

func (q *Queries) CountIndexersForTag(ctx context.Context, tagID string) (int64, error)

func (*Queries) CountServicesByType

func (q *Queries) CountServicesByType(ctx context.Context, type_ string) (int64, error)

func (*Queries) CountServicesForTag

func (q *Queries) CountServicesForTag(ctx context.Context, tagID string) (int64, error)

Counts

func (*Queries) CreateAssignment

func (q *Queries) CreateAssignment(ctx context.Context, arg CreateAssignmentParams) (IndexerAssignment, error)

Assignments

func (*Queries) CreateDownloadClient

func (q *Queries) CreateDownloadClient(ctx context.Context, arg CreateDownloadClientParams) (DownloadClient, error)

func (*Queries) CreateFilterPreset

func (q *Queries) CreateFilterPreset(ctx context.Context, arg CreateFilterPresetParams) (FilterPreset, error)

func (*Queries) CreateIndexer

func (q *Queries) CreateIndexer(ctx context.Context, arg CreateIndexerParams) (Indexer, error)

func (*Queries) CreateQualityProfile

func (q *Queries) CreateQualityProfile(ctx context.Context, arg CreateQualityProfileParams) (QualityProfile, error)

func (*Queries) CreateService

func (q *Queries) CreateService(ctx context.Context, arg CreateServiceParams) (Service, error)

func (*Queries) CreateTag

func (q *Queries) CreateTag(ctx context.Context, arg CreateTagParams) (Tag, error)

func (*Queries) DeleteAssignment

func (q *Queries) DeleteAssignment(ctx context.Context, arg DeleteAssignmentParams) error

func (*Queries) DeleteAssignmentsByIndexer

func (q *Queries) DeleteAssignmentsByIndexer(ctx context.Context, indexerID string) error

func (*Queries) DeleteAssignmentsByService

func (q *Queries) DeleteAssignmentsByService(ctx context.Context, serviceID string) error

func (*Queries) DeleteCapabilities

func (q *Queries) DeleteCapabilities(ctx context.Context, serviceID string) error

func (*Queries) DeleteConfigEntry

func (q *Queries) DeleteConfigEntry(ctx context.Context, arg DeleteConfigEntryParams) error

func (*Queries) DeleteConfigNamespace

func (q *Queries) DeleteConfigNamespace(ctx context.Context, namespace string) error

func (*Queries) DeleteDownloadClient

func (q *Queries) DeleteDownloadClient(ctx context.Context, id string) error

func (*Queries) DeleteFilterPreset

func (q *Queries) DeleteFilterPreset(ctx context.Context, id string) error

func (*Queries) DeleteFilterPresetByName

func (q *Queries) DeleteFilterPresetByName(ctx context.Context, name string) error

func (*Queries) DeleteIndexer

func (q *Queries) DeleteIndexer(ctx context.Context, id string) error

func (*Queries) DeleteQualityProfile

func (q *Queries) DeleteQualityProfile(ctx context.Context, id string) error

func (*Queries) DeleteService

func (q *Queries) DeleteService(ctx context.Context, id string) error

func (*Queries) DeleteSubscriptionsByService

func (q *Queries) DeleteSubscriptionsByService(ctx context.Context, serviceID string) error

func (*Queries) DeleteTag

func (q *Queries) DeleteTag(ctx context.Context, id string) error

func (*Queries) GetAssignmentOverrides

func (q *Queries) GetAssignmentOverrides(ctx context.Context, arg GetAssignmentOverridesParams) (string, error)

func (*Queries) GetConfigEntry

func (q *Queries) GetConfigEntry(ctx context.Context, arg GetConfigEntryParams) (ConfigEntry, error)

func (*Queries) GetDownloadClient

func (q *Queries) GetDownloadClient(ctx context.Context, id string) (DownloadClient, error)

func (*Queries) GetFilterPreset

func (q *Queries) GetFilterPreset(ctx context.Context, id string) (FilterPreset, error)

func (*Queries) GetFilterPresetByName

func (q *Queries) GetFilterPresetByName(ctx context.Context, name string) (FilterPreset, error)

func (*Queries) GetIndexer

func (q *Queries) GetIndexer(ctx context.Context, id string) (Indexer, error)

func (*Queries) GetQualityProfile

func (q *Queries) GetQualityProfile(ctx context.Context, id string) (QualityProfile, error)

func (*Queries) GetService

func (q *Queries) GetService(ctx context.Context, id string) (Service, error)

func (*Queries) GetServiceByNameAndType

func (q *Queries) GetServiceByNameAndType(ctx context.Context, arg GetServiceByNameAndTypeParams) (Service, error)

func (*Queries) GetSharedMediaHandling

func (q *Queries) GetSharedMediaHandling(ctx context.Context) (SharedMediaHandling, error)

func (*Queries) GetTag

func (q *Queries) GetTag(ctx context.Context, id string) (Tag, error)

func (*Queries) GetTagByName

func (q *Queries) GetTagByName(ctx context.Context, name string) (Tag, error)

func (*Queries) ListAllConfig

func (q *Queries) ListAllConfig(ctx context.Context) ([]ConfigEntry, error)

func (*Queries) ListAssignmentsByIndexer

func (q *Queries) ListAssignmentsByIndexer(ctx context.Context, indexerID string) ([]IndexerAssignment, error)

func (*Queries) ListAssignmentsByService

func (q *Queries) ListAssignmentsByService(ctx context.Context, serviceID string) ([]IndexerAssignment, error)

func (*Queries) ListCapabilities

func (q *Queries) ListCapabilities(ctx context.Context, serviceID string) ([]string, error)

func (*Queries) ListConfigByNamespace

func (q *Queries) ListConfigByNamespace(ctx context.Context, namespace string) ([]ConfigEntry, error)

func (*Queries) ListConfigNamespaces

func (q *Queries) ListConfigNamespaces(ctx context.Context) ([]string, error)

func (*Queries) ListDownloadClients

func (q *Queries) ListDownloadClients(ctx context.Context) ([]DownloadClient, error)

func (*Queries) ListDownloadClientsByProtocol

func (q *Queries) ListDownloadClientsByProtocol(ctx context.Context, protocol string) ([]DownloadClient, error)

func (*Queries) ListEnabledDownloadClients

func (q *Queries) ListEnabledDownloadClients(ctx context.Context) ([]DownloadClient, error)

func (*Queries) ListEnabledIndexers

func (q *Queries) ListEnabledIndexers(ctx context.Context) ([]Indexer, error)

func (*Queries) ListFilterPresets

func (q *Queries) ListFilterPresets(ctx context.Context) ([]FilterPreset, error)

func (*Queries) ListIndexerTagIDs

func (q *Queries) ListIndexerTagIDs(ctx context.Context, indexerID string) ([]string, error)

func (*Queries) ListIndexers

func (q *Queries) ListIndexers(ctx context.Context) ([]Indexer, error)

func (*Queries) ListIndexersForService

func (q *Queries) ListIndexersForService(ctx context.Context, serviceID string) ([]Indexer, error)

func (*Queries) ListOnlineServices

func (q *Queries) ListOnlineServices(ctx context.Context) ([]Service, error)

func (*Queries) ListQualityProfiles

func (q *Queries) ListQualityProfiles(ctx context.Context) ([]QualityProfile, error)

func (*Queries) ListServiceTagIDs

func (q *Queries) ListServiceTagIDs(ctx context.Context, serviceID string) ([]string, error)

func (*Queries) ListServices

func (q *Queries) ListServices(ctx context.Context) ([]Service, error)

func (*Queries) ListServicesByCapability

func (q *Queries) ListServicesByCapability(ctx context.Context, capability string) ([]Service, error)

func (*Queries) ListServicesByType

func (q *Queries) ListServicesByType(ctx context.Context, type_ string) ([]Service, error)

func (*Queries) ListSubscribersByNamespace

func (q *Queries) ListSubscribersByNamespace(ctx context.Context, namespace string) ([]Service, error)

func (*Queries) ListSubscriptionsByService

func (q *Queries) ListSubscriptionsByService(ctx context.Context, serviceID string) ([]string, error)

func (*Queries) ListTags

func (q *Queries) ListTags(ctx context.Context) ([]Tag, error)

func (*Queries) SetConfigEntry

func (q *Queries) SetConfigEntry(ctx context.Context, arg SetConfigEntryParams) (ConfigEntry, error)

func (*Queries) SetIndexerTags

func (q *Queries) SetIndexerTags(ctx context.Context, indexerID string) error

Indexer tags

func (*Queries) SetServiceTags

func (q *Queries) SetServiceTags(ctx context.Context, serviceID string) error

Service tags

func (*Queries) Subscribe

func (q *Queries) Subscribe(ctx context.Context, arg SubscribeParams) error

Subscriptions

func (*Queries) Unsubscribe

func (q *Queries) Unsubscribe(ctx context.Context, arg UnsubscribeParams) error

func (*Queries) UpdateDownloadClient

func (q *Queries) UpdateDownloadClient(ctx context.Context, arg UpdateDownloadClientParams) (DownloadClient, error)

func (*Queries) UpdateFilterPreset

func (q *Queries) UpdateFilterPreset(ctx context.Context, arg UpdateFilterPresetParams) (FilterPreset, error)

func (*Queries) UpdateIndexer

func (q *Queries) UpdateIndexer(ctx context.Context, arg UpdateIndexerParams) (Indexer, error)

func (*Queries) UpdateQualityProfile

func (q *Queries) UpdateQualityProfile(ctx context.Context, arg UpdateQualityProfileParams) (QualityProfile, error)

func (*Queries) UpdateService

func (q *Queries) UpdateService(ctx context.Context, arg UpdateServiceParams) (Service, error)

func (*Queries) UpdateServiceHeartbeat

func (q *Queries) UpdateServiceHeartbeat(ctx context.Context, arg UpdateServiceHeartbeatParams) error

func (*Queries) UpdateServiceStatus

func (q *Queries) UpdateServiceStatus(ctx context.Context, arg UpdateServiceStatusParams) error

func (*Queries) UpdateSharedMediaHandling

func (q *Queries) UpdateSharedMediaHandling(ctx context.Context, arg UpdateSharedMediaHandlingParams) (SharedMediaHandling, error)

func (*Queries) UpdateTag

func (q *Queries) UpdateTag(ctx context.Context, arg UpdateTagParams) (Tag, error)

func (*Queries) UpsertFilterPreset

func (q *Queries) UpsertFilterPreset(ctx context.Context, arg UpsertFilterPresetParams) (FilterPreset, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Service

type Service struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	Type       string `json:"type"`
	ApiUrl     string `json:"apiUrl"`
	ApiKey     string `json:"apiKey"`
	HealthUrl  string `json:"healthUrl"`
	Version    string `json:"version"`
	Status     string `json:"status"`
	LastSeen   string `json:"lastSeen"`
	Registered string `json:"registered"`
	Metadata   string `json:"metadata"`
}

type ServiceCapability

type ServiceCapability struct {
	ID         string `json:"id"`
	ServiceID  string `json:"serviceId"`
	Capability string `json:"capability"`
}

type ServiceTag

type ServiceTag struct {
	ServiceID string `json:"serviceId"`
	TagID     string `json:"tagId"`
}

type SetConfigEntryParams

type SetConfigEntryParams struct {
	ID        string `json:"id"`
	Namespace string `json:"namespace"`
	Key       string `json:"key"`
	Value     string `json:"value"`
	UpdatedAt string `json:"updatedAt"`
}

type SharedMediaHandling

type SharedMediaHandling struct {
	ID                  int32  `json:"id"`
	ColonReplacement    string `json:"colonReplacement"`
	ImportExtraFiles    bool   `json:"importExtraFiles"`
	ExtraFileExtensions string `json:"extraFileExtensions"`
	RenameFiles         bool   `json:"renameFiles"`
	UpdatedAt           string `json:"updatedAt"`
}

type SubscribeParams

type SubscribeParams struct {
	ID        string `json:"id"`
	ServiceID string `json:"serviceId"`
	Namespace string `json:"namespace"`
}

type Tag

type Tag struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type UnsubscribeParams

type UnsubscribeParams struct {
	ServiceID string `json:"serviceId"`
	Namespace string `json:"namespace"`
}

type UpdateDownloadClientParams

type UpdateDownloadClientParams struct {
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Protocol  string `json:"protocol"`
	Enabled   bool   `json:"enabled"`
	Priority  int32  `json:"priority"`
	Host      string `json:"host"`
	Port      int32  `json:"port"`
	UseSsl    bool   `json:"useSsl"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	Category  string `json:"category"`
	Directory string `json:"directory"`
	Settings  string `json:"settings"`
	UpdatedAt string `json:"updatedAt"`
	ID        string `json:"id"`
}

type UpdateFilterPresetParams

type UpdateFilterPresetParams struct {
	Name      string `json:"name"`
	Filters   string `json:"filters"`
	UpdatedAt string `json:"updatedAt"`
	ID        string `json:"id"`
}

type UpdateIndexerParams

type UpdateIndexerParams struct {
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Enabled   bool   `json:"enabled"`
	Priority  int32  `json:"priority"`
	Url       string `json:"url"`
	ApiKey    string `json:"apiKey"`
	Settings  string `json:"settings"`
	UpdatedAt string `json:"updatedAt"`
	ID        string `json:"id"`
}

type UpdateQualityProfileParams

type UpdateQualityProfileParams struct {
	Name                 string         `json:"name"`
	CutoffJson           string         `json:"cutoffJson"`
	QualitiesJson        string         `json:"qualitiesJson"`
	UpgradeAllowed       bool           `json:"upgradeAllowed"`
	UpgradeUntilJson     sql.NullString `json:"upgradeUntilJson"`
	MinCustomFormatScore int32          `json:"minCustomFormatScore"`
	UpgradeUntilCfScore  int32          `json:"upgradeUntilCfScore"`
	UpdatedAt            string         `json:"updatedAt"`
	ID                   string         `json:"id"`
}

type UpdateServiceHeartbeatParams

type UpdateServiceHeartbeatParams struct {
	LastSeen string `json:"lastSeen"`
	ID       string `json:"id"`
}

type UpdateServiceParams

type UpdateServiceParams struct {
	Name      string `json:"name"`
	ApiUrl    string `json:"apiUrl"`
	ApiKey    string `json:"apiKey"`
	HealthUrl string `json:"healthUrl"`
	Version   string `json:"version"`
	Metadata  string `json:"metadata"`
	LastSeen  string `json:"lastSeen"`
	ID        string `json:"id"`
}

type UpdateServiceStatusParams

type UpdateServiceStatusParams struct {
	Status   string `json:"status"`
	LastSeen string `json:"lastSeen"`
	ID       string `json:"id"`
}

type UpdateSharedMediaHandlingParams

type UpdateSharedMediaHandlingParams struct {
	ColonReplacement    string `json:"colonReplacement"`
	ImportExtraFiles    bool   `json:"importExtraFiles"`
	ExtraFileExtensions string `json:"extraFileExtensions"`
	RenameFiles         bool   `json:"renameFiles"`
	UpdatedAt           string `json:"updatedAt"`
}

type UpdateTagParams

type UpdateTagParams struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

type UpsertFilterPresetParams

type UpsertFilterPresetParams struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Filters   string `json:"filters"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

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