protos

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_stackexchange_protos_RedisMessage_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ReplyMessage

type ReplyMessage struct {

	// Types that are assignable to Data:
	//
	//	*ReplyMessage_Body
	//	*ReplyMessage_ErrorCode
	Data isReplyMessage_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*ReplyMessage) Descriptor deprecated

func (*ReplyMessage) Descriptor() ([]byte, []int)

Deprecated: Use ReplyMessage.ProtoReflect.Descriptor instead.

func (*ReplyMessage) GetBody

func (x *ReplyMessage) GetBody() []byte

func (*ReplyMessage) GetData

func (m *ReplyMessage) GetData() isReplyMessage_Data

func (*ReplyMessage) GetErrorCode

func (x *ReplyMessage) GetErrorCode() int64

func (*ReplyMessage) ProtoMessage

func (*ReplyMessage) ProtoMessage()

func (*ReplyMessage) ProtoReflect

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

func (*ReplyMessage) Reset

func (x *ReplyMessage) Reset()

func (*ReplyMessage) String

func (x *ReplyMessage) String() string

type ReplyMessage_Body

type ReplyMessage_Body struct {
	Body []byte `protobuf:"bytes,1,opt,name=body,proto3,oneof"`
}

type ReplyMessage_ErrorCode

type ReplyMessage_ErrorCode struct {
	ErrorCode int64 `protobuf:"varint,2,opt,name=errorCode,proto3,oneof"`
}

type ServerMessage

type ServerMessage struct {
	Namespace    string   `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	EventName    string   `protobuf:"bytes,2,opt,name=eventName,proto3" json:"eventName,omitempty"`
	ExceptSender string   `protobuf:"bytes,3,opt,name=exceptSender,proto3" json:"exceptSender,omitempty"`
	To           []string `protobuf:"bytes,4,rep,name=to,proto3" json:"to,omitempty"`
	Body         []byte   `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	Token        string   `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`        //for askServer
	ToClient     bool     `protobuf:"varint,7,opt,name=toClient,proto3" json:"toClient,omitempty"` //for write Client
	// contains filtered or unexported fields
}

func (*ServerMessage) Descriptor deprecated

func (*ServerMessage) Descriptor() ([]byte, []int)

Deprecated: Use ServerMessage.ProtoReflect.Descriptor instead.

func (*ServerMessage) GetBody

func (x *ServerMessage) GetBody() []byte

func (*ServerMessage) GetEventName

func (x *ServerMessage) GetEventName() string

func (*ServerMessage) GetExceptSender

func (x *ServerMessage) GetExceptSender() string

func (*ServerMessage) GetNamespace

func (x *ServerMessage) GetNamespace() string

func (*ServerMessage) GetTo

func (x *ServerMessage) GetTo() []string

func (*ServerMessage) GetToClient

func (x *ServerMessage) GetToClient() bool

func (*ServerMessage) GetToken

func (x *ServerMessage) GetToken() string

func (*ServerMessage) ProtoMessage

func (*ServerMessage) ProtoMessage()

func (*ServerMessage) ProtoReflect

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

func (*ServerMessage) Reset

func (x *ServerMessage) Reset()

func (*ServerMessage) String

func (x *ServerMessage) String() string

Jump to

Keyboard shortcuts

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