mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
14 lines
208 B
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,
|
|
})
|
|
}
|