event

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetAppliesAt

func (x *Envelope) GetAppliesAt() *timestamppb.Timestamp

func (*Envelope) GetId

func (x *Envelope) GetId() string

func (*Envelope) GetPayload

func (x *Envelope) GetPayload() *anypb.Any

func (*Envelope) GetSender

func (x *Envelope) GetSender() *Sender

func (*Envelope) GetTimestamp

func (x *Envelope) GetTimestamp() *timestamppb.Timestamp

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) ProtoReflect

func (x *Envelope) ProtoReflect() protoreflect.Message

func (*Envelope) Reset

func (x *Envelope) Reset()

func (*Envelope) String

func (x *Envelope) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Sender.ProtoReflect.Descriptor instead.

func (*Sender) GetApplication

func (x *Sender) GetApplication() string

func (*Sender) GetMetadata

func (x *Sender) GetMetadata() map[string]string

func (*Sender) ProtoMessage

func (*Sender) ProtoMessage()

func (*Sender) ProtoReflect

func (x *Sender) ProtoReflect() protoreflect.Message

func (*Sender) Reset

func (x *Sender) Reset()

func (*Sender) String

func (x *Sender) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL