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

18 lines
344 B
Go

package msgpack
import (
"github.com/shamaton/msgpack/v2"
"github.com/eosswedenorg/thalos/api/message"
)
//go:generate msgpackgen -v -input-file ../types.go -output-file msgpack.go
func init() {
RegisterGeneratedResolver()
message.RegisterCodec("msgpack", message.Codec{
Encoder: msgpack.Marshal,
Decoder: msgpack.Unmarshal,
})
}