rescan

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package rescan periodically recompiles a source tree into the store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loop

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

func New

func New(st *store.Store, dir string, interval time.Duration, opts ...Option) (*Loop, error)

func (*Loop) Run

func (r *Loop) Run(ctx context.Context)

func (*Loop) SetChangeObserver

func (r *Loop) SetChangeObserver(fn func())

type Option

type Option func(*options)

func WithCompileConfig

func WithCompileConfig(cc config.CompileConfig) Option

func WithLogger

func WithLogger(l *slog.Logger) Option

func WithRescanLog

func WithRescanLog(s *rescanlog.Sink) Option

func WithStatus

func WithStatus(s *rescanstat.Status) Option

Jump to

Keyboard shortcuts

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