Documentation ¶
Overview ¶
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Index ¶
- func ContextSet(ctx context.Context, key string, value interface{}) context.Context
- func QueryBool(c echo.Context, name string) bool
- func QueryDefaultInteger(c echo.Context, name string, def int) (int, error)
- func QueryDefaultString(c echo.Context, name, def string) string
- func QueryInt(c echo.Context, name string) int
- func QueryParamBool(c echo.Context, name string) bool
- func QueryParamBoolDefault(c echo.Context, name string, def string) bool
- func QueryParamFloatDefault(c echo.Context, name string, def string) float64
- func QueryParamInt(c echo.Context, name string) int
- func QueryParamIntDefault(c echo.Context, name string, def string) int
- func QueryParamString(c echo.Context, name string) string
- func QueryParamStringDefault(c echo.Context, name string, def string) string
- func QueryString(c echo.Context, name string) string
- func Setup() error
- func Start() error
- func TickTock(tag string) func()
- func WithTimeout(delegate func() interface{}, timeout time.Duration) (ret interface{}, ok bool)
- type Application
- func (a *Application) Health() (map[string]bool, error)
- func (a *Application) IndexersCreate(c echo.Context, subject *Indexer) error
- func (a *Application) IndexersCreateHandler(c echo.Context) error
- func (a *Application) IndexersDelete(c echo.Context, id string) error
- func (a *Application) IndexersDeleteHandler(c echo.Context) error
- func (a *Application) IndexersIndex(c echo.Context, page int, limit int) error
- func (a *Application) IndexersIndexHandler(c echo.Context) error
- func (a *Application) IndexersRefresh(c echo.Context, id string) error
- func (a *Application) IndexersRefreshHandler(c echo.Context) error
- func (a *Application) IndexersSettings(c echo.Context, id string, setting *Setting) error
- func (a *Application) IndexersSettingsHandler(c echo.Context) error
- func (a *Application) IndexersShow(c echo.Context, id string) error
- func (a *Application) IndexersShowHandler(c echo.Context) error
- func (a *Application) IndexersUpdate(c echo.Context, id string, subject *Indexer) error
- func (a *Application) IndexersUpdateHandler(c echo.Context) error
- func (a *Application) ParserBatch(c echo.Context, batch *Batch) error
- func (a *Application) ParserBatchHandler(c echo.Context) error
- func (a *Application) ParserParse(c echo.Context, title string, type_ string) error
- func (a *Application) ParserParseHandler(c echo.Context) error
- func (a *Application) ParserTitle(c echo.Context, title string, type_ string) error
- func (a *Application) ParserTitleHandler(c echo.Context) error
- func (a *Application) PopularIndex(c echo.Context, interval string) error
- func (a *Application) PopularIndexHandler(c echo.Context) error
- func (a *Application) PopularMovies(c echo.Context) error
- func (a *Application) PopularMoviesHandler(c echo.Context) error
- func (a *Application) ReleasesCreate(c echo.Context, subject *Release) error
- func (a *Application) ReleasesCreateHandler(c echo.Context) error
- func (a *Application) ReleasesDelete(c echo.Context, id string) error
- func (a *Application) ReleasesDeleteHandler(c echo.Context) error
- func (a *Application) ReleasesIndex(c echo.Context, page int, limit int) error
- func (a *Application) ReleasesIndexHandler(c echo.Context) error
- func (a *Application) ReleasesSearch(c echo.Context, page int, limit int, ...) error
- func (a *Application) ReleasesSearchHandler(c echo.Context) error
- func (a *Application) ReleasesSettings(c echo.Context, id string, setting *Setting) error
- func (a *Application) ReleasesSettingsHandler(c echo.Context) error
- func (a *Application) ReleasesShow(c echo.Context, id string) error
- func (a *Application) ReleasesShowHandler(c echo.Context) error
- func (a *Application) ReleasesUpdate(c echo.Context, id string, subject *Release) error
- func (a *Application) ReleasesUpdateHandler(c echo.Context) error
- func (a *Application) Routes()
- func (a *Application) SourcesCreate(c echo.Context) error
- func (a *Application) SourcesIndex(c echo.Context, page int, limit int) error
- func (a *Application) SourcesIndexHandler(c echo.Context) error
- func (a *Application) SourcesParse(c echo.Context, id string, categories string) error
- func (a *Application) SourcesParseHandler(c echo.Context) error
- func (a *Application) SourcesRead(c echo.Context, id string, categories string) error
- func (a *Application) SourcesReadHandler(c echo.Context) error
- func (a *Application) SourcesSearch(c echo.Context, id string, query string, searchType string) error
- func (a *Application) SourcesSearchHandler(c echo.Context) error
- func (a *Application) SourcesShow(c echo.Context, id string) error
- func (a *Application) SourcesShowHandler(c echo.Context) error
- type Batch
- type BatchResult
- type Config
- type Connection
- type ConnectionSet
- type Connector
- func (c *Connector) IndexerActive() ([]*Indexer, error)
- func (c *Connector) IndexerByName(name string) (*Indexer, error)
- func (c *Connector) IndexerGet(id string) (*Indexer, error)
- func (c *Connector) IndexerList(page, limit int) ([]*Indexer, int64, error)
- func (c *Connector) ReleaseGet(id string) (*Release, error)
- func (c *Connector) ReleaseList(page, limit int) ([]*Release, int64, error)
- func (c *Connector) ReleaseSetting(id, setting string, value bool) error
- func (c *Connector) ReleasesAll() ([]*Release, error)
- func (c *Connector) ReleasesPopular(interval string) (map[string][]*Popular, error)
- func (c *Connector) ReleasesPopularMovies() ([]*PopularMovie, error)
- func (c *Connector) ReleasesPopularType(ctx context.Context, t string, date time.Time, limit int) ([]*Popular, error)
- func (c *Connector) TorrentGet(id string) (*Torrent, error)
- func (c *Connector) TorrentList(page, limit int) ([]*Torrent, error)
- type Count
- type Events
- type EventsChannel
- type EventsTopic
- type H
- type Indexer
- type IndexerCounts
- type MigrateTorrents
- type ParseActive
- type ParseIndexer
- type ParseRift
- type ParseRiftAll
- type Popular
- type PopularMovie
- type PopularMovieId
- type PopularResponse
- type Processor
- type Release
- type ReleasesPopular
- type ResetIndexes
- type Response
- type RunicSourceSimple
- type Setting
- type SettingsBatch
- type Torrent
- type UpdateIndexes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextSet ¶ added in v0.5.0
func QueryDefaultInteger ¶
QueryDefaultInt retrieves an integer param from the gin request querystring defaults to def argument if not found
func QueryDefaultString ¶
func QueryParamBool ¶
QueryParamBool retrieves a boolean param from the gin request querystring
func QueryParamBoolDefault ¶
func QueryParamFloatDefault ¶
func QueryParamInt ¶
QueryParamInt retrieves an integer param from the gin request querystring
func QueryParamIntDefault ¶
func QueryParamString ¶
QueryParamString retrieves a string param from the gin request querystring
func QueryParamStringDefault ¶
func QueryString ¶
QueryString retrieves a string param from the gin request querystring
func WithTimeout ¶
WithTimeout runs a delegate function with a timeout,
Example: Wait for a channel
if value, ok := WithTimeout(func()interface{}{return <- inbox}, time.Second); ok { // returned } else { // didn't return }
Example: To send to a channel
_, ok := WithTimeout(func()interface{}{outbox <- myValue; return nil}, time.Second) if !ok { // didn't send }
Types ¶
type Application ¶
type Application struct { Config *Config Log *zap.SugaredLogger Reader *reader.Reader Rift *rift.Client Processor *Processor //golem:template:app/app_partial_definitions // DO NOT EDIT. This section is managed by github.com/dashotv/golem. // Routes Engine *echo.Echo Default *echo.Group Router *echo.Group // Models DB *Connector // Events Events *Events // Workers Workers *minion.Minion //Cache Cache *cache.Cache Scry *scry.Client }
func ContextApp ¶ added in v0.5.0
func ContextApp(ctx context.Context) *Application
func (*Application) IndexersCreate ¶
func (a *Application) IndexersCreate(c echo.Context, subject *Indexer) error
func (*Application) IndexersCreateHandler ¶
func (a *Application) IndexersCreateHandler(c echo.Context) error
func (*Application) IndexersDelete ¶
func (a *Application) IndexersDelete(c echo.Context, id string) error
func (*Application) IndexersDeleteHandler ¶
func (a *Application) IndexersDeleteHandler(c echo.Context) error
func (*Application) IndexersIndex ¶
func (a *Application) IndexersIndex(c echo.Context, page int, limit int) error
func (*Application) IndexersIndexHandler ¶
func (a *Application) IndexersIndexHandler(c echo.Context) error
Indexers (/indexers)
func (*Application) IndexersRefresh ¶ added in v0.4.1
func (a *Application) IndexersRefresh(c echo.Context, id string) error
func (*Application) IndexersRefreshHandler ¶ added in v0.4.1
func (a *Application) IndexersRefreshHandler(c echo.Context) error
func (*Application) IndexersSettings ¶
func (a *Application) IndexersSettings(c echo.Context, id string, setting *Setting) error
func (*Application) IndexersSettingsHandler ¶
func (a *Application) IndexersSettingsHandler(c echo.Context) error
func (*Application) IndexersShow ¶
func (a *Application) IndexersShow(c echo.Context, id string) error
func (*Application) IndexersShowHandler ¶
func (a *Application) IndexersShowHandler(c echo.Context) error
func (*Application) IndexersUpdate ¶
func (a *Application) IndexersUpdate(c echo.Context, id string, subject *Indexer) error
func (*Application) IndexersUpdateHandler ¶
func (a *Application) IndexersUpdateHandler(c echo.Context) error
func (*Application) ParserBatch ¶ added in v0.4.3
func (a *Application) ParserBatch(c echo.Context, batch *Batch) error
GET /parser/batch
func (*Application) ParserBatchHandler ¶ added in v0.4.3
func (a *Application) ParserBatchHandler(c echo.Context) error
func (*Application) ParserParse ¶ added in v0.4.1
func (a *Application) ParserParse(c echo.Context, title string, type_ string) error
GET /parser/parse
func (*Application) ParserParseHandler ¶ added in v0.4.1
func (a *Application) ParserParseHandler(c echo.Context) error
Parser (/parser)
func (*Application) ParserTitle ¶ added in v0.4.1
func (a *Application) ParserTitle(c echo.Context, title string, type_ string) error
GET /parser/title ParserTitle parses the only the title of a file and returns just title, season, episode, year.
func (*Application) ParserTitleHandler ¶ added in v0.4.1
func (a *Application) ParserTitleHandler(c echo.Context) error
func (*Application) PopularIndex ¶
func (a *Application) PopularIndex(c echo.Context, interval string) error
GET /popular/:interval
func (*Application) PopularIndexHandler ¶
func (a *Application) PopularIndexHandler(c echo.Context) error
func (*Application) PopularMovies ¶ added in v0.4.3
func (a *Application) PopularMovies(c echo.Context) error
func (*Application) PopularMoviesHandler ¶ added in v0.4.3
func (a *Application) PopularMoviesHandler(c echo.Context) error
Popular (/popular)
func (*Application) ReleasesCreate ¶
func (a *Application) ReleasesCreate(c echo.Context, subject *Release) error
POST /releases/
func (*Application) ReleasesCreateHandler ¶
func (a *Application) ReleasesCreateHandler(c echo.Context) error
func (*Application) ReleasesDelete ¶
func (a *Application) ReleasesDelete(c echo.Context, id string) error
DELETE /releases/:id
func (*Application) ReleasesDeleteHandler ¶
func (a *Application) ReleasesDeleteHandler(c echo.Context) error
func (*Application) ReleasesIndex ¶
func (a *Application) ReleasesIndex(c echo.Context, page int, limit int) error
GET /releases/
func (*Application) ReleasesIndexHandler ¶
func (a *Application) ReleasesIndexHandler(c echo.Context) error
Releases (/releases)
func (*Application) ReleasesSearch ¶
func (a *Application) ReleasesSearch(c echo.Context, page int, limit int, source, kind, resolution, group, website string) error
GET /releases/
func (*Application) ReleasesSearchHandler ¶
func (a *Application) ReleasesSearchHandler(c echo.Context) error
func (*Application) ReleasesSettings ¶
func (a *Application) ReleasesSettings(c echo.Context, id string, setting *Setting) error
PATCH /releases/:id
func (*Application) ReleasesSettingsHandler ¶
func (a *Application) ReleasesSettingsHandler(c echo.Context) error
func (*Application) ReleasesShow ¶
func (a *Application) ReleasesShow(c echo.Context, id string) error
GET /releases/:id
func (*Application) ReleasesShowHandler ¶
func (a *Application) ReleasesShowHandler(c echo.Context) error
func (*Application) ReleasesUpdate ¶
func (a *Application) ReleasesUpdate(c echo.Context, id string, subject *Release) error
PUT /releases/:id
func (*Application) ReleasesUpdateHandler ¶
func (a *Application) ReleasesUpdateHandler(c echo.Context) error
func (*Application) Routes ¶
func (a *Application) Routes()
func (*Application) SourcesCreate ¶
func (a *Application) SourcesCreate(c echo.Context) error
func (*Application) SourcesIndex ¶
func (a *Application) SourcesIndex(c echo.Context, page int, limit int) error
func (*Application) SourcesIndexHandler ¶
func (a *Application) SourcesIndexHandler(c echo.Context) error
Sources (/sources)
func (*Application) SourcesParse ¶
func (a *Application) SourcesParse(c echo.Context, id string, categories string) error
func (*Application) SourcesParseHandler ¶
func (a *Application) SourcesParseHandler(c echo.Context) error
func (*Application) SourcesRead ¶
func (a *Application) SourcesRead(c echo.Context, id string, categories string) error
func (*Application) SourcesReadHandler ¶
func (a *Application) SourcesReadHandler(c echo.Context) error
func (*Application) SourcesSearch ¶
func (a *Application) SourcesSearch(c echo.Context, id string, query string, searchType string) error
func (*Application) SourcesSearchHandler ¶
func (a *Application) SourcesSearchHandler(c echo.Context) error
func (*Application) SourcesShow ¶
func (a *Application) SourcesShow(c echo.Context, id string) error
func (*Application) SourcesShowHandler ¶
func (a *Application) SourcesShowHandler(c echo.Context) error
type BatchResult ¶ added in v0.4.3
type BatchResult struct { Title string `bson:"title" json:"title"` Info *parser.TorrentInfo `bson:"info" json:"info"` }
type Config ¶
type Config struct { Production bool `env:"PRODUCTION" envDefault:"false"` Mode string `env:"MODE" envDefault:"dev"` Logger string `env:"LOGGER" envDefault:"dev"` Port int `env:"PORT" envDefault:"10080"` //golem:template:app/config_partial_struct // DO NOT EDIT. This section is managed by github.com/dashotv/golem. // Models (Database) Connections ConnectionSet `env:"CONNECTIONS,required"` // Cache RedisAddress string `env:"REDIS_ADDRESS,required"` RedisDatabase int `env:"REDIS_DATABASE" envDefault:"0"` // Router Auth Auth bool `env:"AUTH" envDefault:"false"` ClerkSecretKey string `env:"CLERK_SECRET_KEY"` ClerkToken string `env:"CLERK_TOKEN"` // Events NatsURL string `env:"NATS_URL,required"` // Workers MinionConcurrency int `env:"MINION_CONCURRENCY" envDefault:"10"` MinionDebug bool `env:"MINION_DEBUG" envDefault:"false"` MinionBufferSize int `env:"MINION_BUFFER_SIZE" envDefault:"100"` MinionURI string `env:"MINION_URI,required"` MinionDatabase string `env:"MINION_DATABASE,required"` MinionCollection string `env:"MINION_COLLECTION,required"` ScryURL string `env:"SCRY_URL"` JackettURL string `env:"JACKETT_URL"` JackettKey string `env:"JACKETT_KEY"` NZBGeekURL string `env:"NZBGEEK_URL"` NZBGeekKey string `env:"NZBGEEK_KEY"` RiftURL string `env:"RIFT_URL"` Words []string `env:"WORDS"` GroupsPreferred []string `env:"GROUPS_PREFERRED" envSeparator:","` GroupsVerified []string `env:"GROUPS_VERIFIED" envSeparator:","` // contains filtered or unexported fields }
func (*Config) ConnectionFor ¶
func (c *Config) ConnectionFor(name string) (*Connection, error)
func (*Config) IsVerifiedGroup ¶ added in v0.5.1
type Connection ¶
type Connection struct { URI string `yaml:"uri,omitempty"` Database string `yaml:"database,omitempty"` Collection string `yaml:"collection,omitempty"` }
func (*Connection) UnmarshalText ¶
func (c *Connection) UnmarshalText(text []byte) error
type ConnectionSet ¶
type ConnectionSet map[string]*Connection
func (*ConnectionSet) UnmarshalText ¶
func (c *ConnectionSet) UnmarshalText(text []byte) error
type Connector ¶
type Connector struct { Log *zap.SugaredLogger Indexer *grimoire.Store[*Indexer] Release *grimoire.Store[*Release] Torrent *grimoire.Store[*Torrent] }
func NewConnector ¶
func NewConnector(app *Application) (*Connector, error)
func (*Connector) IndexerActive ¶
func (*Connector) IndexerByName ¶ added in v0.4.1
func (*Connector) IndexerList ¶
func (*Connector) ReleaseList ¶
func (*Connector) ReleaseSetting ¶
func (*Connector) ReleasesAll ¶
func (*Connector) ReleasesPopular ¶
func (*Connector) ReleasesPopularMovies ¶ added in v0.4.1
func (c *Connector) ReleasesPopularMovies() ([]*PopularMovie, error)
func (*Connector) ReleasesPopularType ¶
func (*Connector) TorrentGet ¶ added in v0.5.2
type Events ¶
type Events struct { App *Application Merc *mercury.Mercury Log *zap.SugaredLogger Releases chan *Release RiftVideo chan *rift.Video }
func NewEvents ¶
func NewEvents(app *Application) (*Events, error)
type EventsChannel ¶
type EventsChannel string
type EventsTopic ¶
type EventsTopic string
type H ¶
stolen from gin gonic H is a shortcut for map[string]any
func (H) MarshalXML ¶
MarshalXML allows type H to be used with xml.Marshal.
type Indexer ¶
type Indexer struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` //CreatedAt time.Time `bson:"created_at" json:"created_at"` //UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` Name string `bson:"name" json:"name" grimoire:"index"` URL string `bson:"url" json:"url"` Active bool `bson:"active" json:"active"` Categories []int `bson:"categories" json:"categories"` ProcessedAt time.Time `bson:"processed_at" json:"processed_at"` Count int64 `bson:"count" json:"count"` }
type IndexerCounts ¶ added in v0.5.2
type IndexerCounts struct { minion.WorkerDefaults[*IndexerCounts] }
func (*IndexerCounts) Kind ¶ added in v0.5.2
func (j *IndexerCounts) Kind() string
func (*IndexerCounts) Work ¶ added in v0.5.2
func (j *IndexerCounts) Work(ctx context.Context, job *minion.Job[*IndexerCounts]) error
type MigrateTorrents ¶ added in v0.5.2
type MigrateTorrents struct { minion.WorkerDefaults[*MigrateTorrents] }
func (*MigrateTorrents) Kind ¶ added in v0.5.2
func (j *MigrateTorrents) Kind() string
func (*MigrateTorrents) Work ¶ added in v0.5.2
func (j *MigrateTorrents) Work(ctx context.Context, job *minion.Job[*MigrateTorrents]) error
type ParseActive ¶
type ParseActive struct { minion.WorkerDefaults[*ParseActive] }
func (*ParseActive) Kind ¶
func (j *ParseActive) Kind() string
func (*ParseActive) Work ¶
func (j *ParseActive) Work(ctx context.Context, job *minion.Job[*ParseActive]) error
type ParseIndexer ¶
type ParseIndexer struct { minion.WorkerDefaults[*ParseIndexer] ID string `bson:"id" json:"id"` Title string `bson:"title" json:"title"` }
func (*ParseIndexer) Kind ¶
func (j *ParseIndexer) Kind() string
func (*ParseIndexer) Work ¶
func (j *ParseIndexer) Work(ctx context.Context, job *minion.Job[*ParseIndexer]) error
type ParseRift ¶
type ParseRift struct { minion.WorkerDefaults[*ParseRift] }
type ParseRiftAll ¶
type ParseRiftAll struct { minion.WorkerDefaults[*ParseRiftAll] }
func (*ParseRiftAll) Kind ¶
func (j *ParseRiftAll) Kind() string
func (*ParseRiftAll) Work ¶
func (j *ParseRiftAll) Work(ctx context.Context, job *minion.Job[*ParseRiftAll]) error
type PopularMovie ¶ added in v0.4.1
type PopularMovie struct { ID *PopularMovieId `bson:"_id" json:"id"` Count int `bson:"count" json:"count"` Verified int `bson:"verified" json:"verified"` }
type PopularMovieId ¶ added in v0.4.1
type PopularResponse ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
type Release ¶
type Release struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` //CreatedAt time.Time `bson:"created_at" json:"created_at"` //UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` Type string `bson:"type" json:"type" grimoire:"index"` Source string `bson:"source" json:"source" grimoire:"index"` Title string `bson:"title" json:"title" grimoire:"index"` Year int `bson:"year" json:"year"` Description string `bson:"description" json:"description"` Size int64 `bson:"size" json:"size"` View string `bson:"view" json:"view"` Download string `bson:"download" json:"download"` Infohash string `bson:"infohash" json:"infohash" grimoire:"index"` Season int `bson:"season" json:"season" grimoire:"index"` Episode int `bson:"episode" json:"episode" grimoire:"index"` Volume int `bson:"volume" json:"volume"` Group string `bson:"group" json:"group" grimoire:"index"` Website string `bson:"website" json:"website" grimoire:"index"` Verified bool `bson:"verified" json:"verified" grimoire:"index"` Widescreen bool `bson:"widescreen" json:"widescreen"` Unrated bool `bson:"unrated" json:"unrated"` Uncensored bool `bson:"uncensored" json:"uncensored"` Bluray bool `bson:"bluray" json:"bluray"` ThreeD bool `bson:"threeD" json:"threeD"` Resolution string `bson:"resolution" json:"resolution"` Encodings []string `bson:"encodings" json:"encodings"` Quality string `bson:"quality" json:"quality"` Raw *newznab.NZB `bson:"raw" json:"raw"` Info *parser.TorrentInfo `bson:"info" json:"info"` Downloader string `bson:"downloader" json:"downloader" grimoire:"index"` Checksum string `bson:"checksum" json:"checksum" grimoire:"index"` PublishedAt time.Time `bson:"published_at" json:"published_at" grimoire:"index"` }
type ReleasesPopular ¶ added in v0.5.0
type ReleasesPopular struct { minion.WorkerDefaults[*ReleasesPopular] }
func (*ReleasesPopular) Kind ¶ added in v0.5.0
func (j *ReleasesPopular) Kind() string
func (*ReleasesPopular) Work ¶ added in v0.5.0
func (j *ReleasesPopular) Work(ctx context.Context, job *minion.Job[*ReleasesPopular]) error
type ResetIndexes ¶ added in v0.5.2
type ResetIndexes struct { minion.WorkerDefaults[*ResetIndexes] }
func (*ResetIndexes) Kind ¶ added in v0.5.2
func (j *ResetIndexes) Kind() string
func (*ResetIndexes) Work ¶ added in v0.5.2
func (j *ResetIndexes) Work(ctx context.Context, job *minion.Job[*ResetIndexes]) error
type RunicSourceSimple ¶
type SettingsBatch ¶
type Torrent ¶ added in v0.5.2
type Torrent struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` //CreatedAt time.Time `bson:"created_at" json:"created_at"` //UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` Type string `bson:"type" json:"type"` Source string `bson:"source" json:"source"` Raw string `bson:"raw" json:"raw"` Title string `bson:"title" json:"title"` Description string `bson:"description" json:"description"` Size string `bson:"size" json:"size"` View string `bson:"view" json:"view"` Download string `bson:"download" json:"download"` Infohash string `bson:"infohash" json:"infohash"` Name string `bson:"name" json:"name"` Season int `bson:"season" json:"season"` Episode int `bson:"episode" json:"episode"` Volume int `bson:"volume" json:"volume"` Year int `bson:"year" json:"year"` Checksum string `bson:"checksum" json:"checksum"` Group string `bson:"group" json:"group"` Author string `bson:"author" json:"author"` Verified bool `bson:"verified" json:"verified"` Widescreen bool `bson:"widescreen" json:"widescreen"` Uncensored bool `bson:"uncensored" json:"uncensored"` Bluray bool `bson:"bluray" json:"bluray"` Nzb bool `bson:"nzb" json:"nzb"` Resolution string `bson:"resolution" json:"resolution"` Encoding string `bson:"encoding" json:"encoding"` Quality string `bson:"quality" json:"quality"` PublishedAt time.Time `bson:"published_at" json:"published_at"` }
type UpdateIndexes ¶
type UpdateIndexes struct { minion.WorkerDefaults[*UpdateIndexes] }
func (*UpdateIndexes) Kind ¶
func (j *UpdateIndexes) Kind() string
func (*UpdateIndexes) Timeout ¶
func (j *UpdateIndexes) Timeout(job *minion.Job[*UpdateIndexes]) time.Duration
func (*UpdateIndexes) Work ¶
func (j *UpdateIndexes) Work(ctx context.Context, job *minion.Job[*UpdateIndexes]) error
Source Files ¶
- app.go
- app_context.go
- cache.gen.go
- config.go
- events.gen.go
- events_rift.go
- logger.go
- models.gen.go
- models_indexer.go
- models_release.go
- models_torrent.go
- processor.go
- routes.gen.go
- routes_indexers.go
- routes_parser.go
- routes_popular.go
- routes_releases.go
- routes_sources.go
- routes_static.go
- scry.go
- utils.go
- workers.gen.go
- workers_indexer_counts.go
- workers_indexes.go
- workers_migrate_torrents.go
- workers_parse.go
- workers_releases_popular.go