Documentation ¶
Index ¶
- Constants
- func MarshalEnvelope(model Model) ([]byte, error)
- func MarshalProto(v Model) ([]byte, error)
- func UnmarshalEnvelope(logger lager.Logger, unencodedPayload []byte, model Model) error
- func UnmarshalProto(logger lager.Logger, marshaledPayload []byte, model Model) error
- type Encoder
- type Encoding
- type EnvelopeFormat
- type Model
- type Serializer
- type Version
Constants ¶
View Source
const EncodingOffset int = 2
View Source
const EnvelopeOffset int = 2
Variables ¶
This section is empty.
Functions ¶
func MarshalEnvelope ¶
func MarshalProto ¶
func UnmarshalEnvelope ¶
func UnmarshalProto ¶
Types ¶
type Encoder ¶
type Encoder interface { Encode(payload []byte) ([]byte, error) Decode(payload []byte) ([]byte, error) }
func NewEncoder ¶
func NewEncoder(cryptor encryption.Cryptor) Encoder
type Encoding ¶
type Encoding [EncodingOffset]byte
type Serializer ¶
type Serializer interface { Marshal(logger lager.Logger, model Model) ([]byte, error) Unmarshal(logger lager.Logger, encodedPayload []byte, model Model) error }
func NewSerializer ¶
func NewSerializer(cryptor encryption.Cryptor) Serializer
Click to show internal directories.
Click to hide internal directories.