Documentation ¶
Index ¶
- Constants
- Variables
- type AsyncHashingBus
- type DataSource
- type Header
- func (h *Header) Cid() []byte
- func (h *Header) Content() (c *zcpstring.ZcpString)
- func (h *Header) DummyHashed() bool
- func (h *Header) EvictContent()
- func (h *Header) IsCidInlined() bool
- func (h *Header) SizeBlock() int
- func (h *Header) SizeCumulativeDag() uint64
- func (h *Header) SizeCumulativePayload() uint64
- type Maker
Constants ¶
View Source
const ( CodecRaw uint = 0x55 CodecPB uint = 0x70 NulRootCarHeader = "\x19" + "\xA2" + "\x65" + "roots" + "\x81" + "\xD8\x2A" + "\x45" + "\x00\x01\x55\x00\x00" + "\x67" + "version" + "\x01" )
Variables ¶
View Source
var AvailableHashers = map[string]hasher{ "none": { // contains filtered or unexported fields }, "sha2-256": { // contains filtered or unexported fields }, "sha2-256-gocore": { // contains filtered or unexported fields }, "sha3-512": { // contains filtered or unexported fields }, "blake2b-256": { // contains filtered or unexported fields }, "murmur3-128": { // contains filtered or unexported fields }, }
multihash ids come from https://github.com/multiformats/multicodec/blob/master/table.csv
Functions ¶
This section is empty.
Types ¶
type AsyncHashingBus ¶
type AsyncHashingBus chan<- hashTask
type DataSource ¶
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
func (*Header) DummyHashed ¶
func (*Header) EvictContent ¶
func (h *Header) EvictContent()
func (*Header) IsCidInlined ¶
func (*Header) SizeCumulativeDag ¶
func (*Header) SizeCumulativePayload ¶
Click to show internal directories.
Click to hide internal directories.