Documentation
¶
Index ¶
- Constants
- func ToConfiguredProjects(shortenHomeDir bool) (map[string]*projects.ConfiguredProject, error)
- type PidFile
- func (p *PidFile) Binary() string
- func (p *PidFile) CleanupDirectories()
- func (p *PidFile) Command() string
- func (p *PidFile) IsRunning() bool
- func (p *PidFile) LogFile() string
- func (p *PidFile) LogReader() (io.ReadCloser, error)
- func (p *PidFile) LogWriter() (io.WriteCloser, error)
- func (p *PidFile) Name() string
- func (p *PidFile) PidFile() string
- func (p *PidFile) Remove() error
- func (p *PidFile) ShortName() string
- func (p *PidFile) Signal(sig os.Signal) error
- func (p *PidFile) Stop() error
- func (p *PidFile) String() string
- func (p *PidFile) TempDirectory() string
- func (p *PidFile) WaitForExit() error
- func (p *PidFile) WaitForLogs() error
- func (p *PidFile) WaitForPid() <-chan error
- func (p *PidFile) WorkerLogDir() string
- func (p *PidFile) WorkerPidDir() string
- func (p *PidFile) Write(pid, port int, scheme string) error
Constants ¶
View Source
const WebServerName = "Web Server"
Variables ¶
This section is empty.
Functions ¶
func ToConfiguredProjects ¶
func ToConfiguredProjects(shortenHomeDir bool) (map[string]*projects.ConfiguredProject, error)
Types ¶
type PidFile ¶
type PidFile struct { Dir string `json:"dir"` Watched []string `json:"watch"` Pid int `json:"pid"` Port int `json:"port"` Scheme string `json:"scheme"` Args []string `json:"args"` CustomName string `json:"name"` // contains filtered or unexported fields }
func AllWorkers ¶
func (*PidFile) CleanupDirectories ¶
func (p *PidFile) CleanupDirectories()
func (*PidFile) LogWriter ¶
func (p *PidFile) LogWriter() (io.WriteCloser, error)
LogWriter returns a writer to write logs to the log file. It creates the log file if it does not exist, and truncates it if it does. It is safe to call this method multiple times, it will only create the log file once per process lifetime: it is useful to have a single truncation (and thus a clean log file) at the beginning of the process management but not to truncate the log file when the process is restarted. Please note this method might not return a writer even if the error is nil (the error is returned only for the first call).
func (*PidFile) TempDirectory ¶
func (*PidFile) WaitForExit ¶
func (*PidFile) WaitForLogs ¶
func (*PidFile) WaitForPid ¶
func (*PidFile) WorkerLogDir ¶
func (*PidFile) WorkerPidDir ¶
Click to show internal directories.
Click to hide internal directories.