refresh

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ID

func ID() string

Types

type Configuration

type Configuration struct {
	AppRoot            string        `yaml:"app_root"`
	BinaryName         string        `yaml:"binary_name"`
	BuildDelay         time.Duration `yaml:"build_delay"`
	BuildFlags         []string      `yaml:"build_flags"`
	BuildPath          string        `yaml:"build_path"`
	BuildTargetPath    string        `yaml:"build_target_path"`
	CommandEnv         []string      `yaml:"command_env"`
	CommandFlags       []string      `yaml:"command_flags"`
	EnableColors       bool          `yaml:"enable_colors"`
	IgnoredFolders     []string      `yaml:"ignored_folders"`
	IncludedExtensions []string      `yaml:"included_extensions"`
	LiveReload         bool          `yaml:"live_reload"`
	ReadynessURL       string        `yaml:"readyness_url"`
	LogName            string        `yaml:"log_name"`
	Debug              bool          `yaml:"-"`
	Path               string        `yaml:"-"`
	Stderr             io.Writer     `yaml:"-"`
	Stdin              io.Reader     `yaml:"-"`
	Stdout             io.Writer     `yaml:"-"`
}

func (*Configuration) Dump

func (c *Configuration) Dump(path string) error

func (*Configuration) FullBuildPath

func (c *Configuration) FullBuildPath() string

func (*Configuration) Load

func (c *Configuration) Load(path string) error

type Manager

type Manager struct {
	*Configuration
	ID      string
	Restart chan bool
	// contains filtered or unexported fields
}

func NewWithContext

func NewWithContext(c *Configuration, ctx context.Context) *Manager

func (*Manager) Start

func (r *Manager) Start() error

type WatchEvent added in v1.13.0

type WatchEvent struct {
	Path string
	Type string
}

type Watcher

type Watcher struct {
	Events chan WatchEvent
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(ctx context.Context, appRoot string, includedExtensions []string, ignoredFolders []string) *Watcher

func (*Watcher) Start

func (w *Watcher) Start() error

Jump to

Keyboard shortcuts

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