Documentation
¶
Index ¶
- Variables
- type WatchModeManagerAdapter
- func (wmma *WatchModeManagerAdapter) GetActiveWatches() map[string]generation.WatchInstanceInfo
- func (wmma *WatchModeManagerAdapter) StartWatchMode(ctx context.Context, req generation.PDFGenerationRequest) error
- func (wmma *WatchModeManagerAdapter) StopAllWatchModes() error
- func (wmma *WatchModeManagerAdapter) StopWatchMode(watchID string) error
- type WatchServiceAdapter
- func (wsa *WatchServiceAdapter) ConfigureExclusions(exclusions []string) error
- func (wsa *WatchServiceAdapter) ConfigureInterval(interval time.Duration) error
- func (wsa *WatchServiceAdapter) GetActiveWatchModes() map[string]generation.WatchInstanceInfo
- func (wsa *WatchServiceAdapter) IsWatchModeAvailable() bool
- func (wsa *WatchServiceAdapter) ShouldStartWatchMode(req generation.PDFGenerationRequest, result generation.PDFGenerationResult) bool
- func (wsa *WatchServiceAdapter) StartWatchMode(ctx context.Context, req generation.PDFGenerationRequest) error
- func (wsa *WatchServiceAdapter) StartWatching(config watch.WatchConfiguration) error
- func (wsa *WatchServiceAdapter) StopAllWatchModes() error
- func (wsa *WatchServiceAdapter) StopWatchMode(watchID string) error
- func (wsa *WatchServiceAdapter) StopWatching() error
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (wmma *WatchModeManagerAdapter) StartWatchMode(ctx context.Context, req generation.PDFGenerationRequest) error
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 ¶
func (wsa *WatchServiceAdapter) ShouldStartWatchMode(req generation.PDFGenerationRequest, result generation.PDFGenerationResult) bool
ShouldStartWatchMode determines if watch mode should be started
func (*WatchServiceAdapter) StartWatchMode ¶
func (wsa *WatchServiceAdapter) StartWatchMode(ctx context.Context, req generation.PDFGenerationRequest) error
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