support

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendUnique

func AppendUnique(slice []string, s string) []string

func MakeCmd

func MakeCmd(command string, dir string) *exec.Cmd

func StringInSlice

func StringInSlice(a string, list []string) bool

Types

type Batcher

type Batcher struct {
	*fsnotify.Watcher

	Events chan []fsnotify.Event // Events are returned on this channel
	// contains filtered or unexported fields
}

Batcher batches file watch events in a given interval.

func NewWatcher

func NewWatcher(interval time.Duration) (*Batcher, error)

NewWatcher creates and starts a Batcher with the given time interval.

func (*Batcher) Close

func (b *Batcher) Close()

Close stops the watching of the files.

type Config

type Config struct {
	BuildTags []string
	Services  map[string]*service
}

type PM

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

func NewPM

func NewPM(cfg Config, serviceNames []string) *PM

func (*PM) Run

func (pm *PM) Run()

func (*PM) Stop

func (pm *PM) Stop()

Jump to

Keyboard shortcuts

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