Documentation ¶
Overview ¶
Package thread contains code for interacting with a single stenotype thread.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Thread ¶
type Thread struct {
// contains filtered or unexported fields
}
Thread watches the environment of a single stenotype thread. Stenotype runs multiple threads, each of which interacts with a specific set of directories in the environment. Each stenotype thread has a corresponding Thread object server-side which watches for file changes, cleans up old/dead files, etc.
func (*Thread) ExportDebugHandlers ¶
ExportDebugHandlers exports a set of HTTP handlers on /debug/t<thread id> for querying internal state from this thread.
func (*Thread) FileLastSeen ¶
FileLastSeen returns the last timne this thread saw a new file from stenotype.
Click to show internal directories.
Click to hide internal directories.