Documentation ¶
Index ¶
- func SetExecutable(name string) error
- type Config
- func (c *Config) SetChild(child string, args ...string)
- func (c *Config) SetInterval(interval time.Duration)
- func (c *Config) SetLogger(logger *log.Logger)
- func (c *Config) SetRestart(restart bool)
- func (c *Config) SetStaging(staging string) error
- func (c *Config) SetStderr(s io.Writer)
- func (c *Config) SetStdout(s io.Writer)
- func (c *Config) SetTerminateTree(tree bool)
- type Reloader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetExecutable ¶
SetExecutable sets executable bit for a file in tmp directory.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) SetInterval ¶
SetInterval configures update check interval.
func (*Config) SetRestart ¶
SetRestart configures child automatic restarts.
func (*Config) SetStaging ¶
SetStaging configures updates directory path.
func (*Config) SetTerminateTree ¶
SetTerminateTree configures terminate process tree flag.
type Reloader ¶
type Reloader struct { Config // contains filtered or unexported fields }
Reloader watches, updates and restarts an executable.
func NewReloader ¶
NewReloader returns a new Reloader instance with default configuration.
func (*Reloader) Daemonize ¶
Daemonize detaches console application from terminal, making reloader a daemon.
func (Reloader) RestartDaemon ¶
Click to show internal directories.
Click to hide internal directories.