Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CloudEventContentType is the content type for cloud event. CloudEventContentType = "application/cloudevents+json" // JSONContentType is the content type for JSON. JSONContentType = "application/json" // ProtobufContentType is the MIME media type for Protobuf. ProtobufContentType = "application/x-protobuf" // This is the MIME media type for CloudEvent Protobuf. CloudEventProtobufContentType = "application/cloudevents+protobuf" )
Variables ¶
This section is empty.
Functions ¶
func IsBinaryContentType ¶
IsBinaryContentType determines if content type is byte[].
func IsCloudEventContentType ¶
IsCloudEventContentType checks for content type.
func IsCloudEventProtobuf ¶
func IsJSONContentType ¶
IsJSONContentType checks for content type.
func IsStringContentType ¶
IsStringContentType determines if content type is string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.