route/vendor/github.com/asdine/storm/codec/codec.go

12 lines
375 B
Go
Raw Normal View History

2017-04-28 23:28:25 +00:00
// Package codec contains sub-packages with different codecs that can be used
// to encode and decode entities in Storm.
package codec
// MarshalUnmarshaler represents a codec used to marshal and unmarshal entities.
type MarshalUnmarshaler interface {
Marshal(v interface{}) ([]byte, error)
Unmarshal(b []byte, v interface{}) error
// name of this codec
Name() string
}