internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	Execute() error
}

type OnFileChangedExecutor

type OnFileChangedExecutor struct {
	CmdGenerator    func() *exec.Cmd
	WatchedFilePath string
	ExitOnError     bool
}

func (*OnFileChangedExecutor) Execute

func (e *OnFileChangedExecutor) Execute() error

type PeriodicExecutor

type PeriodicExecutor struct {
	CmdGenerator func() *exec.Cmd
	Interval     time.Duration
	ExitOnError  bool
}

func (*PeriodicExecutor) Execute

func (e *PeriodicExecutor) Execute() error

type PeriodicOnFileChangedExecutor

type PeriodicOnFileChangedExecutor struct {
	CmdGenerator    func() *exec.Cmd
	Interval        time.Duration
	WatchedFilePath string
	ExitOnError     bool
}

func (*PeriodicOnFileChangedExecutor) Execute

func (e *PeriodicOnFileChangedExecutor) Execute() error

Jump to

Keyboard shortcuts

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