watch_service

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WatchModeManagerAdapter

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

WatchModeManagerAdapter implements generation.WatchModeManager interface

func NewWatchModeManagerAdapter

func NewWatchModeManagerAdapter(logger *logger.LoggerAdapter) *WatchModeManagerAdapter

NewWatchModeManagerAdapter creates a new watch mode manager adapter

func (*WatchModeManagerAdapter) GetActiveWatches

func (wmma *WatchModeManagerAdapter) GetActiveWatches() map[string]generation.WatchInstanceInfo

GetActiveWatches returns information about active watch modes

func (*WatchModeManagerAdapter) StartWatchMode

StartWatchMode starts a watch mode for the given request

func (*WatchModeManagerAdapter) StopAllWatchModes

func (wmma *WatchModeManagerAdapter) StopAllWatchModes() error

StopAllWatchModes stops all active watch modes

func (*WatchModeManagerAdapter) StopWatchMode

func (wmma *WatchModeManagerAdapter) StopWatchMode(watchID string) error

StopWatchMode stops a specific watch mode

type WatchServiceAdapter

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

WatchServiceAdapter implements generation.WatchService interface

func NewWatchServiceAdapter

func NewWatchServiceAdapter(
	watchService watch.WatchService,
	watchManager generation.WatchModeManager,
	logger *logger.LoggerAdapter,
) *WatchServiceAdapter

NewWatchServiceAdapter creates a new watch service adapter

func (*WatchServiceAdapter) ConfigureExclusions

func (wsa *WatchServiceAdapter) ConfigureExclusions(exclusions []string) error

ConfigureExclusions configures file exclusions for watch mode

func (*WatchServiceAdapter) ConfigureInterval

func (wsa *WatchServiceAdapter) ConfigureInterval(interval time.Duration) error

ConfigureInterval configures the watch interval

func (*WatchServiceAdapter) GetActiveWatchModes

func (wsa *WatchServiceAdapter) GetActiveWatchModes() map[string]generation.WatchInstanceInfo

GetActiveWatchModes returns information about active watch modes

func (*WatchServiceAdapter) IsWatchModeAvailable

func (wsa *WatchServiceAdapter) IsWatchModeAvailable() bool

IsWatchModeAvailable checks if watch mode is available

func (*WatchServiceAdapter) ShouldStartWatchMode

ShouldStartWatchMode determines if watch mode should be started

func (*WatchServiceAdapter) StartWatchMode

StartWatchMode starts a watch mode for the given request

func (*WatchServiceAdapter) StartWatching

func (wsa *WatchServiceAdapter) StartWatching(config watch.WatchConfiguration) error

StartWatching starts the watch service

func (*WatchServiceAdapter) StopAllWatchModes

func (wsa *WatchServiceAdapter) StopAllWatchModes() error

StopAllWatchModes stops all active watch modes

func (*WatchServiceAdapter) StopWatchMode

func (wsa *WatchServiceAdapter) StopWatchMode(watchID string) error

StopWatchMode stops a specific watch mode

func (*WatchServiceAdapter) StopWatching

func (wsa *WatchServiceAdapter) StopWatching() error

StopWatching stops the watch service

Jump to

Keyboard shortcuts

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