feed

package
v0.0.0-...-2379ac9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnnotateModule = fx.Options(

	fx.Provide(
		NewWatcher,
	),

	fx.Provide(

		fx.Annotate(
			NewWatcher,

			fx.ResultTags(`group:"watchers"`),
		),
	),
)

AnnotateModule is the module defined in this file.

View Source
var FileWatcherModule = fx.Options(
	fx.Provide(

		fx.Annotate(
			NewFileWatcher,
			fx.As(new(Watcher)),
			fx.ResultTags(`group:"watchers"`),
		),
	),
)

FileWatcherModule provides a FileWatcher as a Watcher.

View Source
var ResultModule = fx.Options(

	fx.Provide(New),
)

ResultModule is the module defined in this file.

Functions

This section is empty.

Types

type FileWatcher

type FileWatcher struct{}

FileWatcher watches files.

func NewFileWatcher

func NewFileWatcher() (*FileWatcher, error)

NewFileWatcher builds a new file watcher. region new-fw-init

type Result

type Result struct {
	fx.Out

	// ...
	// endregion result-init
	Watcher Watcher `group:"watchers"`
}

Result is the result of an operation. region result-tagged region result-init

func New

func New() (Result, error)

New produces a result object. region new-init region new-watcher

type Watcher

type Watcher interface{}

Watcher watches for events.

func NewWatcher

func NewWatcher() (Watcher, error)

NewWatcher builds a watcher. region new-init

Jump to

Keyboard shortcuts

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