Versions in this module Expand all Collapse all v0 v0.0.2 Dec 15, 2025 Changes in this version + const MaxSize + func Main(ctx context.Context, setup func(grhctx Ctx) (*Server, error)) + type Ctx struct + Remote string + URL string + type Header struct + Len int + Type string + func SplitHeader(data []byte) (Header, []byte, error) + type Ref struct + Name string + Target [32]byte + func (gr Ref) String() string + type Server struct + Fetch func(ctx context.Context, s *Store, toFetch map[string]blobcache.CID, ...) error + List func(context.Context) iter.Seq2[Ref, error] + Push func(ctx context.Context, s *Store, refs []Ref) error + func (srv *Server) Serve(ctx context.Context, r io.Reader, w io.Writer) error + type Store struct + SkipVerify bool + func (s *Store) Exists(ctx context.Context, cids []blobcache.CID, dst []bool) error + func (s *Store) Get(ctx context.Context, cid blobcache.CID, buf []byte) (int, error) + func (s *Store) Hash(x []byte) blobcache.CID + func (s *Store) MaxSize() int + func (s *Store) Post(ctx context.Context, data []byte) (blobcache.CID, error)