Documentation
¶
Index ¶
- Variables
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)deprecated
- func (x *Envelope) GetAppliesAt() *timestamppb.Timestamp
- func (x *Envelope) GetId() string
- func (x *Envelope) GetPayload() *anypb.Any
- func (x *Envelope) GetSender() *Sender
- func (x *Envelope) GetTimestamp() *timestamppb.Timestamp
- func (*Envelope) ProtoMessage()
- func (x *Envelope) ProtoReflect() protoreflect.Message
- func (x *Envelope) Reset()
- func (x *Envelope) String() string
- type Sender
Constants ¶
This section is empty.
Variables ¶
View Source
var File_event_v1_envelope_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { // ID is a unique identifier for the event. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Timestamp represents the time at which an event was created. Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // AppliesAt indicates the time at which the event described in Payload happened. It does not always // match Timestamp. AppliesAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=applies_at,json=appliesAt,proto3" json:"applies_at,omitempty"` // Payload contains the content of the event, Payload *anypb.Any `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` // Send contains metadata describing who produced the event. Sender *Sender `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"` // contains filtered or unexported fields }
func (*Envelope) Descriptor
deprecated
func (*Envelope) GetAppliesAt ¶
func (x *Envelope) GetAppliesAt() *timestamppb.Timestamp
func (*Envelope) GetPayload ¶
func (*Envelope) GetTimestamp ¶
func (x *Envelope) GetTimestamp() *timestamppb.Timestamp
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) ProtoReflect ¶
func (x *Envelope) ProtoReflect() protoreflect.Message
type Sender ¶
type Sender struct { // Application is the name of the application that created an event. Application string `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"` // Metadata contains any metadata fields provided by the sender. This can include // trace tokens or any other arbitrary data. Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Sender) Descriptor
deprecated
func (*Sender) GetApplication ¶
func (*Sender) GetMetadata ¶
func (*Sender) ProtoMessage ¶
func (*Sender) ProtoMessage()
func (*Sender) ProtoReflect ¶
func (x *Sender) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.