listeners

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Name    string
	Type    EventType
	Content []byte
}

type EventLogger

type EventLogger func(event Event) error

type EventType

type EventType string
const (
	EventInit  EventType = "init"
	EventWrite EventType = "write"
)

type Listener

type Listener interface {
	Name() string
	WatchedFiles() []string
	LogEvent(event Event) error
	Diff() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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