Documentation
¶
Overview ¶
Package host wires the whole Go overlay host: storage, chain tracker, modules, the engine, the pipeline, readiness, root reconciliation, retention, GASP catch-up and the HTTP surface. The binary and the integration test both build it here, so the test exercises exactly what runs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrAssert = errors.New("startup assertion failed")
ErrAssert is a startup assertion that failed: a misconfiguration.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct {
Handler http.Handler
Engine *engine.Engine
Store *store.Store
Pipeline *pipeline.Pipeline
Metrics *metrics.Metrics
Tracker *tracker.Bridge
// Syncer is the GASP catch-up (internal/catchup); it pulls only with
// peers configured.
Syncer *catchup.Syncer
// contains filtered or unexported fields
}
Host is one running overlay host.
func (*Host) Checkpoint ¶ added in v0.2.0
Checkpoint writes an index checkpoint and a blob snapshot under the configured backup directory as <dir>/<name>; name is one path component.
func (*Host) Close ¶
Close stops the modules' background work, waiting for it (at most 10 s) so that none of it reaches the storage after, and releases storage.