Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key represents a shard key. It can be instantiated from a string, a byte slice, or a CID.
func KeyFromBytes ¶
KeyFromBytes returns a key from a byte slice, encoding it in b58 first.
func KeyFromString ¶
KeyFromString returns a key representing an arbitrary string.
func (Key) MarshalJSON ¶ added in v0.4.5
We need a custom JSON marshaller and unmarshaller because str is a private field
func (*Key) UnmarshalJSON ¶ added in v0.4.5
Click to show internal directories.
Click to hide internal directories.