Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decoder ¶
type Decoder interface { DecodeFromCbor([]byte) (Encodable, error) DecodeFromNode(datamodel.Node) (Encodable, error) }
Decoder is CBOR decoder for a given encodable type
func NewDecoder ¶
NewDecoder creates a new Decoder that will decode into new instances of the given object type. It will use the decoding that is optimal for that type It returns error if it's not possible to setup a decoder for this type
Click to show internal directories.
Click to hide internal directories.