Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorLogPath = func() string { return path.Join(LogLocation(), ID()+".err") }
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { AppRoot string `yaml:"app_root"` IgnoredFolders []string `yaml:"ignored_folders"` IncludedExtensions []string `yaml:"included_extensions"` BuildTargetPath string `yaml:"build_target_path"` BuildPath string `yaml:"build_path"` BuildFlags []string `yaml:"build_flags"` BuildDelay time.Duration `yaml:"build_delay"` BinaryName string `yaml:"binary_name"` CommandFlags []string `yaml:"command_flags"` CommandEnv []string `yaml:"command_env"` EnableColors bool `yaml:"enable_colors"` LogName string `yaml:"log_name"` Debug bool `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 Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger(c *Configuration) *Logger
type Manager ¶
type Manager struct { *Configuration Logger *Logger Restart chan bool ID string // contains filtered or unexported fields }
func New ¶
func New(c *Configuration) *Manager
func NewWithContext ¶
func NewWithContext(c *Configuration, ctx context.Context) *Manager
Click to show internal directories.
Click to hide internal directories.