peer_proto

package
v0.0.0-...-ba64992 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

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

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetRequestId

func (x *Payload) GetRequestId() []byte

func (*Payload) GetTenantId

func (x *Payload) GetTenantId() string

func (*Payload) GetTopicData

func (x *Payload) GetTopicData() []byte

func (*Payload) GetTopicName

func (x *Payload) GetTopicName() string

func (*Payload) GetType

func (x *Payload) GetType() PayloadType

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

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

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

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) 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

Jump to

Keyboard shortcuts

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