Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstanceFor ¶
type InstanceFor interface {
InstanceFor(fieldname string) interface{}
}
InstanceFor interface helps the unmarshaller to figure out the right type base on message data, by returning the object reference for the attribute in question
type LengthFor ¶
LengthFor interface helps the unmarshaller to figure out the right length for bytes
type MarshalPACKET ¶
MarshalPACKET allows custom marshaller to return the right bytes
type UnmarshalBitfieldOverflowError ¶
type UnmarshalBitfieldOverflowError struct {
Struct string
Field reflect.StructField
}
An UnmarshalBitfieldOverflowError describes a condition where bit reading overflows uint64 holder
func (*UnmarshalBitfieldOverflowError) Error ¶
func (e *UnmarshalBitfieldOverflowError) Error() string
type UnmarshalPACKET ¶
UnmarshalPACKET interface for custome unmarshaller
type UnmarshalPtrError ¶
UnmarshalPtrError error from expected pointer not found
func (*UnmarshalPtrError) Error ¶
func (e *UnmarshalPtrError) Error() string
type UnmarshalTypeError ¶
type UnmarshalTypeError struct {
Value string // description of packet value - "bool", "array", "number -5"
Type reflect.Type // type of Go value it could not be assigned to
Offset int64 // error occurred after reading Offset bytes
Struct string // name of the struct type containing the field
Field string // name of the field holding the Go value
}
An UnmarshalTypeError describes a packet value that was not appropriate for a value of a specific Go type.
func (*UnmarshalTypeError) Error ¶
func (e *UnmarshalTypeError) Error() string
type UnmarshalUnexpectedEnd ¶
UnmarshalUnexpectedEnd unexpected end of data
func (*UnmarshalUnexpectedEnd) Error ¶
func (e *UnmarshalUnexpectedEnd) Error() string