Documentation
¶
Index ¶
- Variables
- type CloudEvent
- func (*CloudEvent) Descriptor() ([]byte, []int)deprecated
- func (x *CloudEvent) GetAttributes() map[string]*CloudEventAttributeValue
- func (x *CloudEvent) GetBinaryData() []byte
- func (m *CloudEvent) GetData() isCloudEvent_Data
- func (x *CloudEvent) GetId() string
- func (x *CloudEvent) GetProtoData() *anypb.Any
- func (x *CloudEvent) GetSource() string
- func (x *CloudEvent) GetSpecVersion() string
- func (x *CloudEvent) GetTextData() string
- func (x *CloudEvent) GetType() string
- func (*CloudEvent) ProtoMessage()
- func (x *CloudEvent) ProtoReflect() protoreflect.Message
- func (x *CloudEvent) Reset()
- func (x *CloudEvent) String() string
- type CloudEventAttributeValue
- func (*CloudEventAttributeValue) Descriptor() ([]byte, []int)deprecated
- func (m *CloudEventAttributeValue) GetAttr() isCloudEventAttributeValue_Attr
- func (x *CloudEventAttributeValue) GetCeBoolean() bool
- func (x *CloudEventAttributeValue) GetCeBytes() []byte
- func (x *CloudEventAttributeValue) GetCeInteger() int32
- func (x *CloudEventAttributeValue) GetCeString() string
- func (x *CloudEventAttributeValue) GetCeTimestamp() *timestamppb.Timestamp
- func (x *CloudEventAttributeValue) GetCeUri() string
- func (x *CloudEventAttributeValue) GetCeUriRef() string
- func (*CloudEventAttributeValue) ProtoMessage()
- func (x *CloudEventAttributeValue) ProtoReflect() protoreflect.Message
- func (x *CloudEventAttributeValue) Reset()
- func (x *CloudEventAttributeValue) String() string
- type CloudEventAttributeValue_CeBoolean
- type CloudEventAttributeValue_CeBytes
- type CloudEventAttributeValue_CeInteger
- type CloudEventAttributeValue_CeString
- type CloudEventAttributeValue_CeTimestamp
- type CloudEventAttributeValue_CeUri
- type CloudEventAttributeValue_CeUriRef
- type CloudEvent_BinaryData
- type CloudEvent_ProtoData
- type CloudEvent_TextData
Constants ¶
This section is empty.
Variables ¶
View Source
var File_cloudevent_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CloudEvent ¶
type CloudEvent struct {
// Unique event identifier.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// URI of the event source.
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
// Version of the spec in use.
SpecVersion string `protobuf:"bytes,3,opt,name=spec_version,json=specVersion,proto3" json:"spec_version,omitempty"`
// Event type identifier.
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
// Optional & Extension Attributes
Attributes map[string]*CloudEventAttributeValue `` /* 161-byte string literal not displayed */
// CloudEvent Data (Bytes, Text, or Proto)
//
// Types that are assignable to Data:
//
// *CloudEvent_BinaryData
// *CloudEvent_TextData
// *CloudEvent_ProtoData
Data isCloudEvent_Data `protobuf_oneof:"data"`
// contains filtered or unexported fields
}
CloudEvent is copied from https://github.com/cloudevents/spec/blob/main/cloudevents/formats/protobuf-format.md.
func (*CloudEvent) Descriptor
deprecated
func (*CloudEvent) Descriptor() ([]byte, []int)
Deprecated: Use CloudEvent.ProtoReflect.Descriptor instead.
func (*CloudEvent) GetAttributes ¶
func (x *CloudEvent) GetAttributes() map[string]*CloudEventAttributeValue
func (*CloudEvent) GetBinaryData ¶
func (x *CloudEvent) GetBinaryData() []byte
func (*CloudEvent) GetData ¶
func (m *CloudEvent) GetData() isCloudEvent_Data
func (*CloudEvent) GetId ¶
func (x *CloudEvent) GetId() string
func (*CloudEvent) GetProtoData ¶
func (x *CloudEvent) GetProtoData() *anypb.Any
func (*CloudEvent) GetSource ¶
func (x *CloudEvent) GetSource() string
func (*CloudEvent) GetSpecVersion ¶
func (x *CloudEvent) GetSpecVersion() string
func (*CloudEvent) GetTextData ¶
func (x *CloudEvent) GetTextData() string
func (*CloudEvent) GetType ¶
func (x *CloudEvent) GetType() string
func (*CloudEvent) ProtoMessage ¶
func (*CloudEvent) ProtoMessage()
func (*CloudEvent) ProtoReflect ¶
func (x *CloudEvent) ProtoReflect() protoreflect.Message
func (*CloudEvent) Reset ¶
func (x *CloudEvent) Reset()
func (*CloudEvent) String ¶
func (x *CloudEvent) String() string
type CloudEventAttributeValue ¶
type CloudEventAttributeValue struct {
// The value can be any one of these types.
//
// Types that are assignable to Attr:
//
// *CloudEventAttributeValue_CeBoolean
// *CloudEventAttributeValue_CeInteger
// *CloudEventAttributeValue_CeString
// *CloudEventAttributeValue_CeBytes
// *CloudEventAttributeValue_CeUri
// *CloudEventAttributeValue_CeUriRef
// *CloudEventAttributeValue_CeTimestamp
Attr isCloudEventAttributeValue_Attr `protobuf_oneof:"attr"`
// contains filtered or unexported fields
}
CloudEventAttribute enables extensions to use any of the seven allowed data types as the value of an envelope key.
func (*CloudEventAttributeValue) Descriptor
deprecated
func (*CloudEventAttributeValue) Descriptor() ([]byte, []int)
Deprecated: Use CloudEventAttributeValue.ProtoReflect.Descriptor instead.
func (*CloudEventAttributeValue) GetAttr ¶
func (m *CloudEventAttributeValue) GetAttr() isCloudEventAttributeValue_Attr
func (*CloudEventAttributeValue) GetCeBoolean ¶
func (x *CloudEventAttributeValue) GetCeBoolean() bool
func (*CloudEventAttributeValue) GetCeBytes ¶
func (x *CloudEventAttributeValue) GetCeBytes() []byte
func (*CloudEventAttributeValue) GetCeInteger ¶
func (x *CloudEventAttributeValue) GetCeInteger() int32
func (*CloudEventAttributeValue) GetCeString ¶
func (x *CloudEventAttributeValue) GetCeString() string
func (*CloudEventAttributeValue) GetCeTimestamp ¶
func (x *CloudEventAttributeValue) GetCeTimestamp() *timestamppb.Timestamp
func (*CloudEventAttributeValue) GetCeUri ¶
func (x *CloudEventAttributeValue) GetCeUri() string
func (*CloudEventAttributeValue) GetCeUriRef ¶
func (x *CloudEventAttributeValue) GetCeUriRef() string
func (*CloudEventAttributeValue) ProtoMessage ¶
func (*CloudEventAttributeValue) ProtoMessage()
func (*CloudEventAttributeValue) ProtoReflect ¶
func (x *CloudEventAttributeValue) ProtoReflect() protoreflect.Message
func (*CloudEventAttributeValue) Reset ¶
func (x *CloudEventAttributeValue) Reset()
func (*CloudEventAttributeValue) String ¶
func (x *CloudEventAttributeValue) String() string
type CloudEventAttributeValue_CeBoolean ¶
type CloudEventAttributeValue_CeBoolean struct {
// Boolean value.
CeBoolean bool `protobuf:"varint,1,opt,name=ce_boolean,json=ceBoolean,proto3,oneof"`
}
type CloudEventAttributeValue_CeBytes ¶
type CloudEventAttributeValue_CeBytes struct {
// Byte string value.
CeBytes []byte `protobuf:"bytes,4,opt,name=ce_bytes,json=ceBytes,proto3,oneof"`
}
type CloudEventAttributeValue_CeInteger ¶
type CloudEventAttributeValue_CeInteger struct {
// Integer value.
CeInteger int32 `protobuf:"varint,2,opt,name=ce_integer,json=ceInteger,proto3,oneof"`
}
type CloudEventAttributeValue_CeString ¶
type CloudEventAttributeValue_CeString struct {
// String value.
CeString string `protobuf:"bytes,3,opt,name=ce_string,json=ceString,proto3,oneof"`
}
type CloudEventAttributeValue_CeTimestamp ¶
type CloudEventAttributeValue_CeTimestamp struct {
// Timestamp value.
CeTimestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=ce_timestamp,json=ceTimestamp,proto3,oneof"`
}
type CloudEventAttributeValue_CeUri ¶
type CloudEventAttributeValue_CeUri struct {
// URI value.
CeUri string `protobuf:"bytes,5,opt,name=ce_uri,json=ceUri,proto3,oneof"`
}
type CloudEventAttributeValue_CeUriRef ¶
type CloudEventAttributeValue_CeUriRef struct {
// URI reference value.
CeUriRef string `protobuf:"bytes,6,opt,name=ce_uri_ref,json=ceUriRef,proto3,oneof"`
}
type CloudEvent_BinaryData ¶
type CloudEvent_BinaryData struct {
// If the event is binary data then the datacontenttype attribute
// should be set to an appropriate media-type.
BinaryData []byte `protobuf:"bytes,6,opt,name=binary_data,json=binaryData,proto3,oneof"`
}
type CloudEvent_ProtoData ¶
type CloudEvent_ProtoData struct {
// If the event is a protobuf then it must be encoded using this Any
// type. The datacontenttype attribute should be set to
// application/protobuf and the dataschema attribute set to the message
// type.
ProtoData *anypb.Any `protobuf:"bytes,8,opt,name=proto_data,json=protoData,proto3,oneof"`
}
type CloudEvent_TextData ¶
type CloudEvent_TextData struct {
// If the event is string data then the datacontenttype attribute
// should be set to an appropriate media-type such as application/json.
TextData string `protobuf:"bytes,7,opt,name=text_data,json=textData,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.