watchers

package
v0.0.0-...-676febb Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config WatcherConfig
}

func (*Config) UnmarshalJSON

func (c *Config) UnmarshalJSON(data []byte) error

type Path

type Path struct {
	Paths      []string `json:"paths"`
	Recursive  bool     `json:"recursive"`
	Exclusions []string `json:"exclusions"`
	Events     []string `json:"events"`
}

type PathWatcher

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

func NewPathWatcher

func NewPathWatcher() (*PathWatcher, error)

func (*PathWatcher) Add

func (w *PathWatcher) Add(path Path, runnerConfigs []*runners.Config, name string) error

func (*PathWatcher) Watch

func (w *PathWatcher) Watch() (func(), chan struct{})

type WatcherConfig

type WatcherConfig interface{}

Jump to

Keyboard shortcuts

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