Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IEncoder ¶
type IEncoder interface { // Encode takes an object and returns encoded bytes or error Encode(obj interface{}) ([]byte, error) // Decode takes an object and bytes to store decoded data in object, returns error if fails Decode(data []byte, v interface{}) error }
IEncoder has the responsibility to consistently encode/ decode objects for backwards compatibility
Click to show internal directories.
Click to hide internal directories.