1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00
thalos/api/message/json/codec.go

14 lines
208 B
Go

package json
import (
"encoding/json"
"github.com/eosswedenorg/thalos/api/message"
)
func init() {
message.RegisterCodec("json", message.Codec{
Encoder: json.Marshal,
Decoder: json.Unmarshal,
})
}