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

Adding api/message/json/codec.go

This commit is contained in:
Henrik Hautakoski 2023-04-24 16:06:56 +02:00
parent 0d1b0f4310
commit 3e8712c0c0

14
api/message/json/codec.go Normal file
View file

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