Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIncorrectWrapper = errors.New("incorrect wrapper")
)
Functions ¶
func NewAminoStrategy ¶
func NewAminoStrategy(cdc *amino.Codec) *aminoStrategy
NewAminoStrategy generates a new object for amino serialization with amino codec
func RegisterConcrete ¶
func RegisterConcrete(obj interface{}, name string)
Types ¶
type DataAdapter ¶
type Serializer ¶
type Serializer interface { Serialize(obj interface{}) ([]byte, error) Deserialize(d []byte, obj interface{}) error }
var JSONSzr Serializer
func GetSerializer ¶
func GetSerializer(channel Channel, args ...interface{}) Serializer
GetSerializer for a channel of standard types, default is a JSON serializer
Click to show internal directories.
Click to hide internal directories.