Documentation ¶
Index ¶
- Variables
- type Message
- type Message_Flag
- func (Message_Flag) Descriptor() protoreflect.EnumDescriptor
- func (x Message_Flag) Enum() *Message_Flag
- func (Message_Flag) EnumDescriptor() ([]byte, []int)deprecated
- func (x Message_Flag) Number() protoreflect.EnumNumber
- func (x Message_Flag) String() string
- func (Message_Flag) Type() protoreflect.EnumType
- func (x *Message_Flag) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Message_Flag_name = map[int32]string{ 0: "FIN", 1: "STOP_SENDING", 2: "RESET", 3: "FIN_ACK", } Message_Flag_value = map[string]int32{ "FIN": 0, "STOP_SENDING": 1, "RESET": 2, "FIN_ACK": 3, } )
Enum value maps for Message_Flag.
View Source
var File_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Flag *Message_Flag `protobuf:"varint,1,opt,name=flag,enum=Message_Flag" json:"flag,omitempty"` Message []byte `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetFlag ¶
func (x *Message) GetFlag() Message_Flag
func (*Message) GetMessage ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_Flag ¶
type Message_Flag int32
const ( // The sender will no longer send messages on the stream. Message_FIN Message_Flag = 0 // The sender will no longer read messages on the stream. Incoming data is // being discarded on receipt. Message_STOP_SENDING Message_Flag = 1 // The sender abruptly terminates the sending part of the stream. The // receiver can discard any data that it already received on that stream. Message_RESET Message_Flag = 2 // Sending the FIN_ACK flag acknowledges the previous receipt of a message // with the FIN flag set. Receiving a FIN_ACK flag gives the recipient // confidence that the remote has received all sent messages. Message_FIN_ACK Message_Flag = 3 )
func (Message_Flag) Descriptor ¶
func (Message_Flag) Descriptor() protoreflect.EnumDescriptor
func (Message_Flag) Enum ¶
func (x Message_Flag) Enum() *Message_Flag
func (Message_Flag) EnumDescriptor
deprecated
func (Message_Flag) EnumDescriptor() ([]byte, []int)
Deprecated: Use Message_Flag.Descriptor instead.
func (Message_Flag) Number ¶
func (x Message_Flag) Number() protoreflect.EnumNumber
func (Message_Flag) String ¶
func (x Message_Flag) String() string
func (Message_Flag) Type ¶
func (Message_Flag) Type() protoreflect.EnumType
func (*Message_Flag) UnmarshalJSON
deprecated
func (x *Message_Flag) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.