Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd process the logs for the passed Cmd object and outputs the logs within the nginx-wrapper logging configuration.
func RunCommand ¶
RunCommand coordinates the run and shutdown of a binary executable at the specified path. The expectation is that this function will be executing an nginx instance.
Types ¶
type ProcessMonitor ¶
type ProcessMonitor struct { sync.WaitGroup Stop chan struct{} // contains filtered or unexported fields }
ProcessMonitor represents a WaitGroup extended for monitoring the lifecycle of a NGINX process.
func NewProcessMonitor ¶
func NewProcessMonitor() *ProcessMonitor
NewProcessMonitor creates a new fully configured instance.
func (*ProcessMonitor) Increment ¶
func (pm *ProcessMonitor) Increment()
Increment adds 1 to the WaitGroup counter.
func (*ProcessMonitor) Reload ¶
func (pm *ProcessMonitor) Reload(cause string)
Reload starts the process of reconfiguring the wrapped nginx process.
func (*ProcessMonitor) Shutdown ¶
func (pm *ProcessMonitor) Shutdown(cause string)
Shutdown gracefully stops the wrapped nginx process.
Click to show internal directories.
Click to hide internal directories.