Documentation ¶
Index ¶
- func CborTypeExtract(b []byte) (string, error)
- func CborTypeExtractReader(r io.Reader) (string, []byte, error)
- func JsonDecodeValue(b []byte) (any, error)
- func NewFromType(typ string) (interface{}, error)
- func RegisterType(id string, val cbg.CBORMarshaler)
- func TypeExtract(b []byte) (string, error)
- type Blob
- type CBOR
- type CborChecker
- type LexiconTypeDecoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CborTypeExtract ¶
func JsonDecodeValue ¶
func NewFromType ¶
func RegisterType ¶
func RegisterType(id string, val cbg.CBORMarshaler)
func TypeExtract ¶
Types ¶
type CborChecker ¶
type CborChecker struct {
Type string `cborgen:"$type"`
}
func (*CborChecker) MarshalCBOR ¶
func (t *CborChecker) MarshalCBOR(w io.Writer) error
func (*CborChecker) UnmarshalCBOR ¶
func (t *CborChecker) UnmarshalCBOR(r io.Reader) (err error)
type LexiconTypeDecoder ¶
type LexiconTypeDecoder struct {
Val cbg.CBORMarshaler
}
func (*LexiconTypeDecoder) MarshalJSON ¶
func (ltd *LexiconTypeDecoder) MarshalJSON() ([]byte, error)
func (*LexiconTypeDecoder) UnmarshalJSON ¶
func (ltd *LexiconTypeDecoder) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.