Documentation
¶
Overview ¶
Package server is the HTTP surface of the store: the store plane that the node daemon and the jj backend call, and the control plane of the caller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.5.0
type Config struct {
Pool *pgxpool.Pool
Bucket objstore.Store
Verifier *grant.Verifier
Logger *slog.Logger
// Now is the clock of grant expiry and the root commit. It defaults to time.Now.
Now func() time.Time
}
Config is the dependencies of a Server. New builds the index and the object service from Pool and Bucket, so every composition shares one graph.