package
0.0.33
Repository: https://github.com/mjl-/gobuild.git
Documentation: pkg.go.dev

# Functions

NewClient returns a new Client using the given Client.
NewServer returns a new Server using the given operations.
NewTestServer constructs a new TestServer that will sign its tree with the given signer key (see golang.org/x/mod/sumdb/note) and fetch new records as needed by calling gosum.

# Variables

ErrSecurity is returned by Client operations that invoke Client.SecurityError.
ErrWriteConflict signals a write conflict during Client.WriteConfig.
ServerPaths are the URL paths the Server can (and should) serve.

# Structs

A Client is a client connection to a checksum database.
A Server is the checksum database HTTP server, which implements http.Handler and should be invoked to serve the paths listed in ServerPaths.
A TestServer is an in-memory implementation of Server for testing.

# Interfaces

A ClientOps provides the external operations (file caching, HTTP fetches, and so on) needed by the Client.
A ServerOps provides the external operations (underlying database access and so on) needed by the Server.