message

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Message_Type_name = map[int32]string{
		0: "HTTP_CONNECT",
		1: "HTTP_CONNECT_OK",
		2: "HTTP_SERVICE_UNAVAILABLE",
		3: "DISCONNECTED",
		4: "DATA",
	}
	Message_Type_value = map[string]int32{
		"HTTP_CONNECT":             0,
		"HTTP_CONNECT_OK":          1,
		"HTTP_SERVICE_UNAVAILABLE": 2,
		"DISCONNECTED":             3,
		"DATA":                     4,
	}
)

Enum value maps for Message_Type.

View Source
var (
	Message_Origin_name = map[int32]string{
		0: "ORIGIN_LOCAL",
		1: "ORIGIN_REMOTE",
	}
	Message_Origin_value = map[string]int32{
		"ORIGIN_LOCAL":  0,
		"ORIGIN_REMOTE": 1,
	}
)

Enum value maps for Message_Origin.

View Source
var File_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Message

type Message struct {
	Type          Message_Type   `protobuf:"varint,1,opt,name=type,proto3,enum=message.Message_Type" json:"type,omitempty"`
	Origin        Message_Origin `protobuf:"varint,2,opt,name=origin,proto3,enum=message.Message_Origin" json:"origin,omitempty"`
	Id            int32          `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	SocketAddress string         `protobuf:"bytes,4,opt,name=socket_address,json=socketAddress,proto3" json:"socket_address,omitempty"`
	Buf           []byte         `protobuf:"bytes,5,opt,name=buf,proto3" json:"buf,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetBuf

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

func (*Message) GetId

func (x *Message) GetId() int32

func (*Message) GetOrigin

func (x *Message) GetOrigin() Message_Origin

func (*Message) GetSocketAddress

func (x *Message) GetSocketAddress() string

func (*Message) GetType

func (x *Message) GetType() Message_Type

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_Origin

type Message_Origin int32
const (
	Message_ORIGIN_LOCAL  Message_Origin = 0
	Message_ORIGIN_REMOTE Message_Origin = 1
)

func (Message_Origin) Descriptor

func (Message_Origin) Enum

func (x Message_Origin) Enum() *Message_Origin

func (Message_Origin) EnumDescriptor deprecated

func (Message_Origin) EnumDescriptor() ([]byte, []int)

Deprecated: Use Message_Origin.Descriptor instead.

func (Message_Origin) Number

func (Message_Origin) String

func (x Message_Origin) String() string

func (Message_Origin) Type

type Message_Type

type Message_Type int32
const (
	Message_HTTP_CONNECT             Message_Type = 0
	Message_HTTP_CONNECT_OK          Message_Type = 1
	Message_HTTP_SERVICE_UNAVAILABLE Message_Type = 2
	Message_DISCONNECTED             Message_Type = 3
	Message_DATA                     Message_Type = 4
)

func (Message_Type) Descriptor

func (Message_Type) Enum

func (x Message_Type) Enum() *Message_Type

func (Message_Type) EnumDescriptor deprecated

func (Message_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Message_Type.Descriptor instead.

func (Message_Type) Number

func (Message_Type) String

func (x Message_Type) String() string

func (Message_Type) Type

Jump to

Keyboard shortcuts

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