12 lines
375 B
Go
12 lines
375 B
Go
|
// 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
|
||
|
}
|