Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader loads all runs under a log directory and accumulates their contents.
func (*Loader) Close ¶
Close implements io.Closer. If there are multiple errors when closing underlying run readers, an arbitrary one is returned.
func (*Loader) Reload ¶
func (ll *Loader) Reload()
Reload polls the log directory and reloads runs. It blocks until the reload finishes. Must not be called concurrently with any other Reload. May be called concurrently with reads.
type LoaderBuilder ¶
type LoaderBuilder struct { // FS is the filesystem to use for read operations. FS fs.Filesystem // Logdir is the root log directory to be loaded, as a path under FS. Logdir string }
LoaderBuilder specifies options for a Loader.
func (LoaderBuilder) Start ¶
func (b LoaderBuilder) Start() *Loader
Start starts a loader in a new goroutine. It starts dormant. Call Reload on returned *Loader to poll.
Click to show internal directories.
Click to hide internal directories.