forked from cerc-io/ipld-eth-server
36533f7c3f
Fixes for new geth version
21 lines
580 B
Go
21 lines
580 B
Go
package cbor
|
|
|
|
type EncodeOptions struct {
|
|
// there aren't a ton of options for cbor, but we still need this
|
|
// for use as a sigil for the top-level refmt methods to demux on.
|
|
}
|
|
|
|
// marker method -- you may use this type to instruct `refmt.Marshal`
|
|
// what kind of encoder to use.
|
|
func (EncodeOptions) IsEncodeOptions() {}
|
|
|
|
type DecodeOptions struct {
|
|
CoerceUndefToNull bool
|
|
|
|
// future: options to validate canonical serial order
|
|
}
|
|
|
|
// marker method -- you may use this type to instruct `refmt.Marshal`
|
|
// what kind of encoder to use.
|
|
func (DecodeOptions) IsDecodeOptions() {}
|