ipld-eth-server/vendor/github.com/polydawn/refmt/cbor/cborOptions.go
Elizabeth Engelman 36533f7c3f Update vendor directory and make necessary code changes
Fixes for new geth version
2019-09-25 16:32:27 -05:00

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() {}