monitor

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: ISC Imports: 8 Imported by: 0

Documentation

Overview

Package monitor provides file system monitoring for wiki changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager added in v0.2.25

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

Manager coordinates file system monitoring across all wikis.

func GetManager added in v0.2.25

func GetManager() *Manager

GetManager returns the global monitor manager instance.

func (*Manager) AddWikiWithPregeneration added in v0.2.32

func (m *Manager) AddWikiWithPregeneration(w *wiki.Wiki, pregenerateManager PregenerateManager) error

AddWikiWithPregeneration starts monitoring a wiki for file changes with pregeneration manager.

func (*Manager) RemoveWiki added in v0.2.25

func (m *Manager) RemoveWiki(wikiName string)

RemoveWiki stops monitoring a wiki.

func (*Manager) Stop added in v0.2.25

func (m *Manager) Stop()

Stop gracefully shuts down all monitoring.

type PregenerateManager added in v0.2.32

type PregenerateManager interface {
	GeneratePageSync(string, bool) any
}

PregenerateManager defines the interface we need for page generation

Jump to

Keyboard shortcuts

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