Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFramer ¶ added in v0.31.0
NewFramer returns a runtime.Framer based on RFC 8742 CBOR Sequences. Each frame contains exactly one encoded CBOR data item.
func NewSerializerInfo ¶ added in v0.32.0
func NewSerializerInfo(creater runtime.ObjectCreater, typer runtime.ObjectTyper) runtime.SerializerInfo
NewSerializerInfo returns a default SerializerInfo for CBOR using the given creater and typer.
Types ¶
type Option ¶
type Option func(*options)
func Strict ¶
Strict configures a serializer to return a strict decoding error when it encounters map keys that do not correspond to a field in the target object of a decode operation. This option is disabled by default.
type Serializer ¶
type Serializer interface { runtime.Serializer runtime.NondeterministicEncoder recognizer.RecognizingDecoder // contains filtered or unexported methods }
func NewSerializer ¶
func NewSerializer(creater runtime.ObjectCreater, typer runtime.ObjectTyper, options ...Option) Serializer
NewSerializer creates and returns a serializer configured with the provided options. The default options are equivalent to explicitly passing Strict(false) and Transcode(true).
Directories ¶
Path | Synopsis |
---|---|
Package direct provides functions for marshaling and unmarshaling between arbitrary Go values and CBOR data, with behavior that is compatible with that of the CBOR serializer.
|
Package direct provides functions for marshaling and unmarshaling between arbitrary Go values and CBOR data, with behavior that is compatible with that of the CBOR serializer. |
internal
|
|
Click to show internal directories.
Click to hide internal directories.