Documentation ¶
Index ¶
Constants ¶
View Source
const KeyCharsASCII = "ascii"
View Source
const MaxKeySize = 4096
View Source
const Version = 2
Variables ¶
This section is empty.
Functions ¶
func IsPrintableASCII ¶
func MarshalBlock ¶
MarshalBlock serializes the Shard to CBOR encoded bytes, takes the sha2-256 hash of the data, constructs a CID and returns a block.Block.
Types ¶
type RootBlockView ¶
type RootShard ¶
type RootShard interface { Shard // Version is the shard compatibility version. Version() int64 // KeyChars are the characters allowed in keys, referring to a known character // set. e.g. "ascii" refers to the printable ASCII characters in the code // range 32-126. KeyChars() string // MaxKeySize is the maximum key size in bytes - default 4096 bytes. MaxKeySize() int64 }
type Shard ¶
Click to show internal directories.
Click to hide internal directories.