licaonfee/ratchet

Decouple data transfer with codecs

Opened this issue · 0 comments

something like

type Codec interface {
    Encode(interface{}) []byte
    Decode([]byte) interface{}
}


input := Reader(Input(JSONCodec()))
// between DataProcessors there is a implicit codec like gob 
output := Writer(Output(CSVCodec()))