Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBufferFailure = helpers.ErrBufferFailure
ErrBufferFailure means proton panicked because buffer was too small.
Functions ¶
Types ¶
type Marshaller ¶ added in v0.4.1
type Marshaller interface {
Messages() []any
ID(msg any) (uint64, error)
Size(msg any) (uint64, error)
Marshal(msg any, buf []byte) (uint64, uint64, error)
Unmarshal(id uint64, buf []byte) (any, uint64, error)
IsPatchNeeded(msgDst, msgSrc any) (bool, error)
MakePatch(msgDst, msgSrc any, buf []byte) (uint64, uint64, error)
ApplyPatch(msg any, buf []byte) (uint64, error)
}
Marshaller is the interface implemented by marshallers.
Directories
¶
| Path | Synopsis |
|---|---|
|
test
|
|
|
pkg1
Package pkg1 provides marshaller for entities.
|
Package pkg1 provides marshaller for entities. |
|
pkg1/generator
command
|
|
Click to show internal directories.
Click to hide internal directories.