indexer

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexChapters

func IndexChapters(slug, path string) (int, error)

func IndexManga

func IndexManga(absolutePath, librarySlug string) (string, error)

func Initialize

func Initialize(cacheDirectory string, libraries []models.Library)

Initialize sets up indexers and notifications

Types

type Indexer

type Indexer struct {
	Library     models.Library
	Cron        *cron.Cron
	CronJobID   cron.EntryID
	CronRunning bool
	JobRunning  bool
	// contains filtered or unexported fields
}

Indexer represents the state of an indexer

func NewIndexer added in v1.0.4

func NewIndexer(library models.Library) *Indexer

NewIndexer creates a new Indexer instance

func (*Indexer) Start

func (idx *Indexer) Start()

Start initializes and starts the Indexer

func (*Indexer) Stop

func (idx *Indexer) Stop()

Stop stops the indexer and cleans up

type NotificationListener

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

NotificationListener listens for notifications and handles them

func (*NotificationListener) Notify

func (nl *NotificationListener) Notify(notification models.Notification)

Notify processes incoming notifications

Jump to

Keyboard shortcuts

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