listeners

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff added in v0.0.8

type Diff struct {
	DependencyFileDiffs deps.FileDiffs
}

func (Diff) IsEmpty added in v0.0.8

func (d Diff) IsEmpty() bool

type DiffMap added in v0.0.9

type DiffMap map[string]Diff

func (DiffMap) IsEmpty added in v0.0.9

func (d DiffMap) IsEmpty() bool

func (DiffMap) NumDeletedDependencies added in v0.0.9

func (d DiffMap) NumDeletedDependencies() int64

func (DiffMap) NumNewDependencies added in v0.0.9

func (d DiffMap) NumNewDependencies() int64

func (DiffMap) NumUpdatedDependencies added in v0.0.9

func (d DiffMap) NumUpdatedDependencies() int64

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() Diff
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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