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 Threads ¶
func Threads(configs []config.ThreadConfig, baseDir string) ([]*Thread, error)
Threads creates a set of thread objects based on a set of ThreadConfigs.
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 ¶
Click to show internal directories.
Click to hide internal directories.