interfaces

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigManager

type ConfigManager interface {
	Get() *config.Config
	Reload() error
	OnReload(func(*config.Config))
}

ConfigManager defines the interface for managing configuration.

type Logger

type Logger interface {
	Info(msg string, args ...interface{})
	Error(msg string, args ...interface{})
	Debug(msg string, args ...interface{})
	Sync() error
}

Logger defines the interface for logging.

type Processor

type Processor interface {
	Start(ctx context.Context) error
	UpdateConfig(cfg *config.Config)
}

Processor defines the interface for the file processor.

type Queue

type Queue interface {
	Load() error
	Save() error
	Size() int
	Enqueue(item *model.Item) error
	Dequeue() *model.Item
	Requeue(item *model.Item, err error) error
}

Queue defines the interface for the processing queue.

type VaultClient

type VaultClient interface {
	Close() error
}

VaultClient defines the interface for interacting with Vault.

type Watcher

type Watcher interface {
	Start(ctx context.Context) error
	UpdateConfig(cfg *config.Config) error
}

Watcher defines the interface for the file watcher.

Jump to

Keyboard shortcuts

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