indexer

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexChapters

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

func IndexManga

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

func Initialize

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

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 indexer state (requred to be local type)

func (*Indexer) Start

func (idx *Indexer) Start()

Start starts the Indexer for the given library

func (*Indexer) Stop

func (idx *Indexer) Stop()

Stop stops the indexer

type NotificationListener

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

NotificationListener is a global channel for all notifications

func (*NotificationListener) Notify

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

Jump to

Keyboard shortcuts

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