Documentation ¶
Index ¶
- Variables
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)deprecated
- func (x *Payload) GetRequestId() []byte
- func (x *Payload) GetTenantId() string
- func (x *Payload) GetTopicData() []byte
- func (x *Payload) GetTopicName() string
- func (x *Payload) GetType() PayloadType
- func (*Payload) ProtoMessage()
- func (x *Payload) ProtoReflect() protoreflect.Message
- func (x *Payload) Reset()
- func (x *Payload) String() string
- type PayloadType
- func (PayloadType) Descriptor() protoreflect.EnumDescriptor
- func (x PayloadType) Enum() *PayloadType
- func (PayloadType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PayloadType) Number() protoreflect.EnumNumber
- func (x PayloadType) String() string
- func (PayloadType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PayloadType_name = map[int32]string{ 0: "kPayloadUnknown", 1: "kPayloadRequest", 2: "kPayloadResponse", 3: "kPayloadTopicNotify", } PayloadType_value = map[string]int32{ "kPayloadUnknown": 0, "kPayloadRequest": 1, "kPayloadResponse": 2, "kPayloadTopicNotify": 3, } )
Enum value maps for PayloadType.
View Source
var File_peer_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Payload ¶
type Payload struct { Type PayloadType `protobuf:"varint,1,opt,name=type,proto3,enum=io.opennoty.peer.proto.PayloadType" json:"type,omitempty"` RequestId []byte `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // 16 byte binary (uuid) // Common (kPayloadTopicNotify) TenantId string `protobuf:"bytes,10,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // kPayloadTopicNotify TopicName string `protobuf:"bytes,30,opt,name=topic_name,json=topicName,proto3" json:"topic_name,omitempty"` TopicData []byte `protobuf:"bytes,31,opt,name=topic_data,json=topicData,proto3" json:"topic_data,omitempty"` // contains filtered or unexported fields }
func (*Payload) Descriptor
deprecated
func (*Payload) GetRequestId ¶
func (*Payload) GetTenantId ¶
func (*Payload) GetTopicData ¶
func (*Payload) GetTopicName ¶
func (*Payload) GetType ¶
func (x *Payload) GetType() PayloadType
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
type PayloadType ¶
type PayloadType int32
const ( PayloadType_kPayloadUnknown PayloadType = 0 PayloadType_kPayloadRequest PayloadType = 1 PayloadType_kPayloadResponse PayloadType = 2 PayloadType_kPayloadTopicNotify PayloadType = 3 )
func (PayloadType) Descriptor ¶
func (PayloadType) Descriptor() protoreflect.EnumDescriptor
func (PayloadType) Enum ¶
func (x PayloadType) Enum() *PayloadType
func (PayloadType) EnumDescriptor
deprecated
func (PayloadType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PayloadType.Descriptor instead.
func (PayloadType) Number ¶
func (x PayloadType) Number() protoreflect.EnumNumber
func (PayloadType) String ¶
func (x PayloadType) String() string
func (PayloadType) Type ¶
func (PayloadType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.