Documentation
¶
Overview ¶
Package pkg1 provides marshaller for entities.
Code generated by github.com/outofforest/proton DO NOT EDIT.
Index ¶
- Variables
- type Marshaller
- func (m Marshaller) ApplyPatch(msg any, buf []byte) (retSize uint64, retErr error)
- func (m Marshaller) ID(msg any) (uint64, error)
- func (m Marshaller) IsPatchNeeded(msgDst, msgSrc any) (bool, error)
- func (m Marshaller) MakePatch(msgDst, msgSrc any, buf []byte) (retID, retSize uint64, retErr error)
- func (m Marshaller) Marshal(msg any, buf []byte) (retID, retSize uint64, retErr error)
- func (m Marshaller) Messages() []any
- func (m Marshaller) Size(msg any) (uint64, error)
- func (m Marshaller) Unmarshal(id uint64, buf []byte) (retMsg any, retSize uint64, retErr error)
- type MsgArray
- type MsgArrayCustom
- type MsgArrayFloat32
- type MsgArrayFloat32Custom
- type MsgArrayFloat64
- type MsgArrayFloat64Custom
- type MsgArrayInt8
- type MsgArrayInt8Custom
- type MsgArrayUint8
- type MsgArrayUint8Custom
- type MsgArrayUint8Custom2
- type MsgBool3
- type MsgBool10
- type MsgBoolCustom
- type MsgFloat32
- type MsgFloat32Custom
- type MsgFloat64
- type MsgFloat64Custom
- type MsgIgnore
- type MsgInt8
- type MsgInt8Custom
- type MsgInt16
- type MsgInt16Custom
- type MsgInt32
- type MsgInt32Custom
- type MsgInt64
- type MsgInt64Custom
- type MsgMap
- type MsgMapCustom
- type MsgMapString
- type MsgMixed
- type MsgMixedCustom
- type MsgNotIgnore
- type MsgSlice
- type MsgSliceCustom
- type MsgSliceFloat32
- type MsgSliceFloat32Custom
- type MsgSliceFloat64
- type MsgSliceFloat64Custom
- type MsgSliceInt8
- type MsgSliceInt8Custom
- type MsgSliceUint8
- type MsgSliceUint8Custom
- type MsgSliceUint8Custom2
- type MsgString
- type MsgStringCustom
- type MsgStrings
- type MsgStruct
- type MsgStructAnonymous
- type MsgTime
- type MsgUint8
- type MsgUint8Custom
- type MsgUint16
- type MsgUint16Custom
- type MsgUint32
- type MsgUint32Custom
- type MsgUint64
- type MsgUint64Custom
- type SubMsg
Constants ¶
This section is empty.
Variables ¶
var List = []any{ pkg2.SubMsg{}, MsgUint64{}, MsgUint32{}, MsgUint16{}, MsgUint8{}, MsgInt64{}, MsgInt32{}, MsgInt16{}, MsgInt8{}, MsgBool3{}, MsgBool10{}, MsgFloat64{}, MsgFloat32{}, MsgString{}, MsgArray{}, MsgSlice{}, MsgMap{}, MsgMapString{}, MsgStruct{}, MsgStructAnonymous{}, MsgArrayUint8{}, MsgArrayInt8{}, MsgArrayFloat32{}, MsgArrayFloat64{}, MsgSliceUint8{}, MsgSliceInt8{}, MsgSliceFloat32{}, MsgSliceFloat64{}, MsgMixed{}, MsgUint64Custom{}, MsgUint32Custom{}, MsgUint16Custom{}, MsgUint8Custom{}, MsgInt64Custom{}, MsgInt32Custom{}, MsgInt16Custom{}, MsgInt8Custom{}, MsgBoolCustom{}, MsgFloat64Custom{}, MsgFloat32Custom{}, MsgStringCustom{}, MsgArrayCustom{}, MsgSliceCustom{}, MsgMapCustom{}, MsgArrayUint8Custom{}, MsgArrayUint8Custom2{}, MsgArrayInt8Custom{}, MsgArrayFloat32Custom{}, MsgArrayFloat64Custom{}, MsgSliceUint8Custom{}, MsgSliceUint8Custom2{}, MsgSliceInt8Custom{}, MsgSliceFloat32Custom{}, MsgSliceFloat64Custom{}, MsgTime{}, MsgMixedCustom{}, MsgIgnore{}, MsgNotIgnore{}, MsgStrings{}, }
List is a list of types to generate code for.
Functions ¶
This section is empty.
Types ¶
type Marshaller ¶ added in v0.7.5
type Marshaller struct {
}
Marshaller marshals and unmarshals messages.
func NewMarshaller ¶ added in v0.7.5
func NewMarshaller() Marshaller
NewMarshaller creates marshaller.
func (Marshaller) ApplyPatch ¶ added in v0.14.0
func (m Marshaller) ApplyPatch(msg any, buf []byte) (retSize uint64, retErr error)
ApplyPatch applies patch.
func (Marshaller) ID ¶ added in v0.10.0
func (m Marshaller) ID(msg any) (uint64, error)
ID returns ID of message type.
func (Marshaller) IsPatchNeeded ¶ added in v0.20.0
func (m Marshaller) IsPatchNeeded(msgDst, msgSrc any) (bool, error)
IsPatchNeeded checks if non-empty patch exists.
func (Marshaller) MakePatch ¶ added in v0.14.0
func (m Marshaller) MakePatch(msgDst, msgSrc any, buf []byte) (retID, retSize uint64, retErr error)
MakePatch creates a patch.
func (Marshaller) Marshal ¶ added in v0.7.5
func (m Marshaller) Marshal(msg any, buf []byte) (retID, retSize uint64, retErr error)
Marshal marshals message.
func (Marshaller) Messages ¶ added in v0.11.0
func (m Marshaller) Messages() []any
Messages returns list of the message types supported by marshaller.
type MsgArrayCustom ¶
MsgArrayCustom is used in tests.
type MsgArrayFloat32 ¶
type MsgArrayFloat32 struct {
Value [5]float32
}
MsgArrayFloat32 is used in tests.
type MsgArrayFloat32Custom ¶
type MsgArrayFloat32Custom struct {
Value custom.ArrayFloat32
}
MsgArrayFloat32Custom is used in tests.
type MsgArrayFloat64 ¶
type MsgArrayFloat64 struct {
Value [5]float64
}
MsgArrayFloat64 is used in tests.
type MsgArrayFloat64Custom ¶
type MsgArrayFloat64Custom struct {
Value custom.ArrayFloat64
}
MsgArrayFloat64Custom is used in tests.
type MsgArrayInt8Custom ¶
MsgArrayInt8Custom is used in tests.
type MsgArrayUint8Custom ¶
type MsgArrayUint8Custom struct {
Value custom.ArrayUint8
}
MsgArrayUint8Custom is used in tests.
type MsgArrayUint8Custom2 ¶
type MsgArrayUint8Custom2 struct {
Value custom.ArrayCustomUint8
}
MsgArrayUint8Custom2 is used in tests.
type MsgBool10 ¶
type MsgBool10 struct {
Value1 bool
Value2 bool
Value3 bool
Value4 bool
Value5 bool
Value6 bool
Value7 bool
Value8 bool
Value9 bool
Value10 bool
}
MsgBool10 is used in tests.
type MsgBoolCustom ¶
MsgBoolCustom is used in tests.
type MsgFloat32Custom ¶
MsgFloat32Custom is used in tests.
type MsgFloat64Custom ¶
MsgFloat64Custom is used in tests.
type MsgInt8Custom ¶
MsgInt8Custom is used in tests.
type MsgInt16Custom ¶
MsgInt16Custom is used in tests.
type MsgInt32Custom ¶
MsgInt32Custom is used in tests.
type MsgInt64Custom ¶
MsgInt64Custom is used in tests.
type MsgMapString ¶ added in v0.2.1
MsgMapString is used in tests.
type MsgMixed ¶
type MsgMixed struct {
Value1 map[string]spkg1.SubMsg
Value2 map[uint8][]string
Value3 [][32]uint16
Value4 [12]map[int8]float32
Value5 [][3][]map[int16][2]int64
Value6 bool
Value7 bool
Value8 string
}
MsgMixed is used in tests.
type MsgMixedCustom ¶
MsgMixedCustom is used in tests.
type MsgNotIgnore ¶ added in v0.13.0
type MsgNotIgnore struct {
SubMsg MsgIgnore
}
MsgNotIgnore is used in tests.
type MsgSliceCustom ¶
MsgSliceCustom is used in tests.
type MsgSliceFloat32 ¶
type MsgSliceFloat32 struct {
Value []float32
}
MsgSliceFloat32 is used in tests.
type MsgSliceFloat32Custom ¶
type MsgSliceFloat32Custom struct {
Value custom.SliceFloat32
}
MsgSliceFloat32Custom is used in tests.
type MsgSliceFloat64 ¶
type MsgSliceFloat64 struct {
Value []float64
}
MsgSliceFloat64 is used in tests.
type MsgSliceFloat64Custom ¶
type MsgSliceFloat64Custom struct {
Value custom.SliceFloat64
}
MsgSliceFloat64Custom is used in tests.
type MsgSliceInt8Custom ¶
MsgSliceInt8Custom is used in tests.
type MsgSliceUint8Custom ¶
type MsgSliceUint8Custom struct {
Value custom.SliceUint8
}
MsgSliceUint8Custom is used in tests.
type MsgSliceUint8Custom2 ¶
type MsgSliceUint8Custom2 struct {
Value custom.SliceCustomUint8
}
MsgSliceUint8Custom2 is used in tests.
type MsgStringCustom ¶
MsgStringCustom is used in tests.
type MsgStrings ¶ added in v0.14.0
type MsgStrings struct {
Value1 string
Value2 string
Value3 string
Value4 string
Value5 string
Value6 string
Value7 string
Value8 string
Value9 string
Value10 string
}
MsgStrings is used in tests.
type MsgStructAnonymous ¶
MsgStructAnonymous is used in tests.
type MsgUint8Custom ¶
MsgUint8Custom is used in tests.
type MsgUint16Custom ¶
MsgUint16Custom is used in tests.
type MsgUint32Custom ¶
MsgUint32Custom is used in tests.
type MsgUint64Custom ¶
MsgUint64Custom is used in tests.