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.
func (*Thread) Lookup ¶
Lookup looks up packets that match a given query within the files owned by a single stenotype thread.
func (*Thread) OldestFileTimestamp ¶
OldestFileTimestamp returns timestamp of the oldest file we have.