package codecs
import "github.com/mesos/mesos-go/api/v1/lib/encoding/codecs"
Index ¶
Constants ¶
const ( // MediaTypeProtobuf is the Protobuf serialization format media type. MediaTypeProtobuf = encoding.MediaType("application/x-protobuf") // MediaTypeJSON is the JSON serialiation format media type. MediaTypeJSON = encoding.MediaType("application/json") NameProtobuf = "protobuf" NameJSON = "json" )
Variables ¶
var ByMediaType = map[encoding.MediaType]encoding.Codec{ MediaTypeProtobuf: encoding.Codec{ Name: NameProtobuf, Type: MediaTypeProtobuf, NewEncoder: proto.NewEncoder, NewDecoder: proto.NewDecoder, }, MediaTypeJSON: encoding.Codec{ Name: NameJSON, Type: MediaTypeJSON, NewEncoder: json.NewEncoder, NewDecoder: json.NewDecoder, }, }
ByMediaType are pre-configured default Codecs, ready to use OOTB
Source Files ¶
- Version
- v0.0.11 (latest)
- Published
- May 15, 2020
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 1 hour ago –
Tools for package owners.