Documentation ¶
Index ¶
- Constants
- func Hash(x []byte) cadata.ID
- type ReadChain
- func (c ReadChain) Exists(ctx context.Context, id cadata.ID) (bool, error)
- func (c ReadChain) Get(ctx context.Context, id cadata.ID, buf []byte) (int, error)
- func (c ReadChain) Hash(x []byte) cadata.ID
- func (c ReadChain) List(ctx context.Context, span cadata.Span, ids []cadata.ID) (n int, err error)
- func (c ReadChain) MaxSize() int
- type ReadOnly
- type Store
- type Void
- func (s Void) Delete(ctx context.Context, id cadata.ID) error
- func (s Void) Exists(ctx context.Context, id cadata.ID) (bool, error)
- func (s Void) Get(ctx context.Context, id cadata.ID, buf []byte) (int, error)
- func (s Void) Hash(x []byte) cadata.ID
- func (s Void) List(ctx context.Context, span cadata.Span, ids []cadata.ID) (int, error)
- func (s Void) MaxSize() int
- func (s Void) Post(ctx context.Context, data []byte) (cadata.ID, error)
Constants ¶
View Source
const MaxSize = 1 << 21
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReadChain ¶
type ReadChain []ReadOnly
type Store ¶
func NewFSStore ¶
Click to show internal directories.
Click to hide internal directories.