pkg1

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package pkg1 provides marshaller for entities.

Code generated by github.com/outofforest/proton DO NOT EDIT.

Index

Constants

This section is empty.

Variables

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.

func (Marshaller) Size added in v0.8.0

func (m Marshaller) Size(msg any) (uint64, error)

Size computes the size of marshalled message.

func (Marshaller) Unmarshal added in v0.7.5

func (m Marshaller) Unmarshal(id uint64, buf []byte) (retMsg any, retSize uint64, retErr error)

Unmarshal unmarshals message.

type MsgArray

type MsgArray struct {
	Value [3]bool
}

MsgArray is used in tests.

type MsgArrayCustom

type MsgArrayCustom struct {
	Value custom.Array
}

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 MsgArrayInt8

type MsgArrayInt8 struct {
	Value [5]int8
}

MsgArrayInt8 is used in tests.

type MsgArrayInt8Custom

type MsgArrayInt8Custom struct {
	Value custom.ArrayInt8
}

MsgArrayInt8Custom is used in tests.

type MsgArrayUint8

type MsgArrayUint8 struct {
	Value [5]uint8
}

MsgArrayUint8 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 MsgBool3

type MsgBool3 struct {
	Value1 bool
	Value2 bool
	Value3 bool
}

MsgBool3 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

type MsgBoolCustom struct {
	Value custom.Bool
}

MsgBoolCustom is used in tests.

type MsgFloat32

type MsgFloat32 struct {
	Value float32
}

MsgFloat32 is used in tests.

type MsgFloat32Custom

type MsgFloat32Custom struct {
	Value custom.Float32
}

MsgFloat32Custom is used in tests.

type MsgFloat64

type MsgFloat64 struct {
	Value float64
}

MsgFloat64 is used in tests.

type MsgFloat64Custom

type MsgFloat64Custom struct {
	Value custom.Float64
}

MsgFloat64Custom is used in tests.

type MsgIgnore added in v0.13.0

type MsgIgnore struct {
	Value1        bool
	Value2Ignored bool
	Value3        string
	Value4Ignored string
}

MsgIgnore is used in tests.

type MsgInt8

type MsgInt8 struct {
	Value int8
}

MsgInt8 is used in tests.

type MsgInt8Custom

type MsgInt8Custom struct {
	Value custom.Int8
}

MsgInt8Custom is used in tests.

type MsgInt16

type MsgInt16 struct {
	Value int16
}

MsgInt16 is used in tests.

type MsgInt16Custom

type MsgInt16Custom struct {
	Value custom.Int16
}

MsgInt16Custom is used in tests.

type MsgInt32

type MsgInt32 struct {
	Value int32
}

MsgInt32 is used in tests.

type MsgInt32Custom

type MsgInt32Custom struct {
	Value custom.Int32
}

MsgInt32Custom is used in tests.

type MsgInt64

type MsgInt64 struct {
	Value int64
}

MsgInt64 is used in tests.

type MsgInt64Custom

type MsgInt64Custom struct {
	Value custom.Int64
}

MsgInt64Custom is used in tests.

type MsgMap

type MsgMap struct {
	Value map[uint64]uint64
}

MsgMap is used in tests.

type MsgMapCustom

type MsgMapCustom struct {
	Value custom.Map
}

MsgMapCustom is used in tests.

type MsgMapString added in v0.2.1

type MsgMapString struct {
	Value map[string]string
}

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

type MsgMixedCustom struct {
	Value custom.Mixed
}

MsgMixedCustom is used in tests.

type MsgNotIgnore added in v0.13.0

type MsgNotIgnore struct {
	SubMsg MsgIgnore
}

MsgNotIgnore is used in tests.

type MsgSlice

type MsgSlice struct {
	Value []bool
}

MsgSlice is used in tests.

type MsgSliceCustom

type MsgSliceCustom struct {
	Value custom.Slice
}

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 MsgSliceInt8

type MsgSliceInt8 struct {
	Value []int8
}

MsgSliceInt8 is used in tests.

type MsgSliceInt8Custom

type MsgSliceInt8Custom struct {
	Value custom.SliceInt8
}

MsgSliceInt8Custom is used in tests.

type MsgSliceUint8

type MsgSliceUint8 struct {
	Value []uint8
}

MsgSliceUint8 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 MsgString

type MsgString struct {
	Value string
}

MsgString is used in tests.

type MsgStringCustom

type MsgStringCustom struct {
	Value custom.String
}

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 MsgStruct

type MsgStruct struct {
	Value1 SubMsg
	Value2 pkg2.SubMsg
}

MsgStruct is used in tests.

type MsgStructAnonymous

type MsgStructAnonymous struct {
	SubMsg

	Value2 pkg2.SubMsg
}

MsgStructAnonymous is used in tests.

type MsgTime added in v0.12.0

type MsgTime struct {
	Value time.Time
}

MsgTime is used in tests.

type MsgUint8

type MsgUint8 struct {
	Value uint8
}

MsgUint8 is used in tests.

type MsgUint8Custom

type MsgUint8Custom struct {
	Value custom.Uint8
}

MsgUint8Custom is used in tests.

type MsgUint16

type MsgUint16 struct {
	Value uint16
}

MsgUint16 is used in tests.

type MsgUint16Custom

type MsgUint16Custom struct {
	Value custom.Uint16
}

MsgUint16Custom is used in tests.

type MsgUint32

type MsgUint32 struct {
	Value uint32
}

MsgUint32 is used in tests.

type MsgUint32Custom

type MsgUint32Custom struct {
	Value custom.Uint32
}

MsgUint32Custom is used in tests.

type MsgUint64

type MsgUint64 struct {
	Value uint64
}

MsgUint64 is used in tests.

type MsgUint64Custom

type MsgUint64Custom struct {
	Value custom.Uint64
}

MsgUint64Custom is used in tests.

type SubMsg

type SubMsg struct {
	Value1 []float32
	Value2 []spkg1.SubMsg
	Value3 []spkg2.SubMsg
}

SubMsg is used in tests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL