Documentation
¶
Index ¶
- 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 MsgCertificate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marshaller ¶
type Marshaller struct {
}
Marshaller marshals and unmarshals messages.
func (Marshaller) ApplyPatch ¶
func (m Marshaller) ApplyPatch(msg any, buf []byte) (retSize uint64, retErr error)
ApplyPatch applies patch.
func (Marshaller) ID ¶
func (m Marshaller) ID(msg any) (uint64, error)
ID returns ID of message type.
func (Marshaller) IsPatchNeeded ¶ added in v0.3.0
func (m Marshaller) IsPatchNeeded(msgDst, msgSrc any) (bool, error)
IsPatchNeeded checks if non-empty patch exists.
func (Marshaller) MakePatch ¶
func (m Marshaller) MakePatch(msgDst, msgSrc any, buf []byte) (retID, retSize uint64, retErr error)
MakePatch creates a patch.
func (Marshaller) Marshal ¶
func (m Marshaller) Marshal(msg any, buf []byte) (retID, retSize uint64, retErr error)
Marshal marshals message.
func (Marshaller) Messages ¶
func (m Marshaller) Messages() []any
Messages returns list of the message types supported by marshaller.
type MsgCertificate ¶
type MsgCertificate struct {
Certificate []byte
}
MsgCertificate is used to deliver TLS certificates to HTTP services.
Click to show internal directories.
Click to hide internal directories.