pb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetFlag

func (x *Message) GetFlag() Message_Flag

func (*Message) GetMessage

func (x *Message) GetMessage() []byte

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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) 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 (Message_Flag) String

func (x Message_Flag) String() string

func (Message_Flag) Type

func (*Message_Flag) UnmarshalJSON deprecated

func (x *Message_Flag) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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