Documentation
¶
Index ¶
- func TypeWriteToTest(t *testing.T, data []WriteTestData, errorExpected ...bool)
- type DuplicatedKeyError
- type ErrorMessagePackType
- type ExceededLengthError
- type InvalidArgumentError
- type InvalidTypeError
- type MessagePackType
- type MessagePackTypeDecoder
- type MessagePackTypeEncoder
- type Options
- type OutOfBoundError
- type WriteTestData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TypeWriteToTest ¶
func TypeWriteToTest(t *testing.T, data []WriteTestData, errorExpected ...bool)
Types ¶
type DuplicatedKeyError ¶
type DuplicatedKeyError struct {
Key interface{}
}
func (DuplicatedKeyError) Error ¶
func (d DuplicatedKeyError) Error() string
type ErrorMessagePackType ¶
type ErrorMessagePackType string
ErrorMessagePackType returns always an error if you try to write it.
func (ErrorMessagePackType) Len ¶
func (e ErrorMessagePackType) Len() int
type ExceededLengthError ¶
func (ExceededLengthError) Error ¶
func (e ExceededLengthError) Error() string
type InvalidArgumentError ¶
type InvalidArgumentError struct {
Desc string
}
func (InvalidArgumentError) Error ¶
func (i InvalidArgumentError) Error() string
type InvalidTypeError ¶
type InvalidTypeError struct {
Type string
}
func (InvalidTypeError) Error ¶
func (i InvalidTypeError) Error() string
type MessagePackType ¶
type MessagePackType interface { MessagePackTypeEncoder MessagePackTypeDecoder }
MessagePackType is a MessagePack-compatible type
type MessagePackTypeDecoder ¶
type MessagePackTypeDecoder interface { }
MessagePackTypeDecoder contains the methods used to convert the bytes into the type
type MessagePackTypeEncoder ¶
MessagePackTypeEncoder contains the methods used to convert the type into bytes
type Options ¶
type Options string
Options is the string following a comma in a struct field's "sbor" tag, or the empty string. It does not include the leading comma.
type OutOfBoundError ¶
type OutOfBoundError struct {
Key int
}
func (OutOfBoundError) Error ¶
func (o OutOfBoundError) Error() string
type WriteTestData ¶
type WriteTestData struct { Input MessagePackType Expected []byte Name string }
Click to show internal directories.
Click to hide internal directories.