Documentation
¶
Index ¶
- Variables
- func FromBytes(dt []byte, t Type) (digest.Digest, error)
- func SetDefaultDB(db *DB)
- type DB
- func (d *DB) All(ctx context.Context, cb func(key string, typ Type, frames []Frame) error) error
- func (d *DB) Close() error
- func (d *DB) FromBytes(dt []byte, typ Type) (digest.Digest, error)
- func (d *DB) Get(ctx context.Context, dgst string) (Type, []Frame, error)
- func (d *DB) NewHash(typ Type) *Hash
- func (d *DB) Wait()
- type Frame
- type FrameID
- type Hash
- type Record
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidEncoding = errors.Errorf("invalid encoding")
View Source
var ErrNotFound = errors.Errorf("not found")
Functions ¶
func SetDefaultDB ¶
func SetDefaultDB(db *DB)
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func GetDefaultDB ¶
func GetDefaultDB() *DB
Click to show internal directories.
Click to hide internal directories.