1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-07-02 11:43:40 +02:00

transport/message/encoding.go: make Decoder type match common Unmarshal interface.

This commit is contained in:
Henrik Hautakoski 2023-02-21 10:56:36 +01:00
parent 6ca9f408f9
commit b46c070948

View file

@ -4,7 +4,7 @@ package message
type Encoder func(any) ([]byte, error) type Encoder func(any) ([]byte, error)
// Decoder is a function that can decode a format into an object // Decoder is a function that can decode a format into an object
type Decoder func(any, []byte) error type Decoder func([]byte, any) error
// Codec is a type that can has a matching Encoder and Decoder function. // Codec is a type that can has a matching Encoder and Decoder function.
type Codec struct { type Codec struct {