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) 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 MsgRequest
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) 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 MsgRequest ¶
MsgRequest is used to request dns record creation for DKIM.
Click to show internal directories.
Click to hide internal directories.