Documentation
¶
Overview ¶
package gitrh provides a Server implementation of the Git remote helper IPC protocol
Index ¶
- Constants
- func Main(ctx context.Context, setup func(grhctx Ctx) (*Server, error))
- type Ctx
- type Header
- type Ref
- type Server
- type Store
- 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)
Constants ¶
View Source
const MaxSize = 1 << 22
MaxSize is the maximum allowed size of an object.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
Click to show internal directories.
Click to hide internal directories.