Versions in this module Expand all Collapse all v0 v0.0.2 Apr 29, 2019 v0.0.1 Apr 26, 2019 Changes in this version + var ErrGONOSUMDB = errors.New("skipped (listed in GONOSUMDB)") + var ErrSecurity = errors.New("security error: misbehaving server") + var ErrWriteConflict = errors.New("write conflict") + var Paths = []string + type Client interface + Log func(msg string) + ReadCache func(file string) ([]byte, error) + ReadConfig func(file string) ([]byte, error) + ReadRemote func(path string) ([]byte, error) + SecurityError func(msg string) + WriteCache func(file string, data []byte) + WriteConfig func(file string, old, new []byte) error + type Conn struct + func NewConn(client Client) *Conn + func (c *Conn) Lookup(path, vers string) (lines []string, err error) + func (c *Conn) SetGONOSUMDB(list string) + func (c *Conn) SetTileHeight(height int) + type Handler struct + Server Server + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Server interface + Lookup func(ctx context.Context, key string) (int64, error) + NewContext func(r *http.Request) (context.Context, error) + ReadRecords func(ctx context.Context, id, n int64) ([][]byte, error) + ReadTileData func(ctx context.Context, t tlog.Tile) ([]byte, error) + Signed func(ctx context.Context) ([]byte, error) + type TestServer struct + func NewTestServer(signer string, gosum func(path, vers string) ([]byte, error)) *TestServer + func (s *TestServer) Lookup(ctx context.Context, key string) (int64, error) + func (s *TestServer) NewContext(r *http.Request) (context.Context, error) + func (s *TestServer) ReadRecords(ctx context.Context, id, n int64) ([][]byte, error) + func (s *TestServer) ReadTileData(ctx context.Context, t tlog.Tile) ([]byte, error) + func (s *TestServer) Signed(ctx context.Context) ([]byte, error)