Documentation ¶
Overview ¶
Package env contains the environment that stenographer will set up and run. This is the main part of the stenographer server, setting up stenotype's environment and running it, and serving all HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct { // StenotypeOutput is the writer that stenotype STDOUT/STDERR will be // redirected to. StenotypeOutput io.Writer // contains filtered or unexported fields }
Env contains information necessary to run Stenotype.
func (*Env) Close ¶
Close closes the directory. This should only be done when stenotype has stopped using it. After this call, Env should no longer be used.
func (*Env) ExportDebugHandlers ¶
ExportDebugHandlers exports a few debugging handlers to an HTTP ServeMux.
func (*Env) MinLastFileSeen ¶
MinLastFileSeen returns the timestamp of the oldest among the newest files created by all threads.
func (*Env) RunStenotype ¶
func (d *Env) RunStenotype()
RunStenotype keeps the stenotype binary running, restarting it if necessary but trying not to allow crash loops.