pb

package
v0.2.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SessionType_name = map[int32]string{
		0: "ST_NONE",
		1: "TCP",
		2: "UDP",
	}
	SessionType_value = map[string]int32{
		"ST_NONE": 0,
		"TCP":     1,
		"UDP":     2,
	}
)

Enum value maps for SessionType.

View Source
var (
	HeaderType_name = map[int32]string{
		0: "HT_NONE",
		1: "SESSION",
		2: "USER",
	}
	HeaderType_value = map[string]int32{
		"HT_NONE": 0,
		"SESSION": 1,
		"USER":    2,
	}
)

Enum value maps for HeaderType.

View Source
var (
	MsgType_name = map[int32]string{
		0:   "MT_NONE",
		1:   "REMOTEADDR",
		2:   "SESSIONID",
		255: "CLOSE",
	}
	MsgType_value = map[string]int32{
		"MT_NONE":    0,
		"REMOTEADDR": 1,
		"SESSIONID":  2,
		"CLOSE":      255,
	}
)

Enum value maps for MsgType.

View Source
var File_pb_session_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HeaderType added in v0.2.6

type HeaderType int32
const (
	HeaderType_HT_NONE HeaderType = 0
	HeaderType_SESSION HeaderType = 1
	HeaderType_USER    HeaderType = 2
)

func (HeaderType) Descriptor added in v0.2.6

func (HeaderType) Descriptor() protoreflect.EnumDescriptor

func (HeaderType) Enum added in v0.2.6

func (x HeaderType) Enum() *HeaderType

func (HeaderType) EnumDescriptor deprecated added in v0.2.6

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

Deprecated: Use HeaderType.Descriptor instead.

func (HeaderType) Number added in v0.2.6

func (x HeaderType) Number() protoreflect.EnumNumber

func (HeaderType) String added in v0.2.6

func (x HeaderType) String() string

func (HeaderType) Type added in v0.2.6

type MsgType added in v0.2.6

type MsgType int32
const (
	MsgType_MT_NONE    MsgType = 0
	MsgType_REMOTEADDR MsgType = 1
	MsgType_SESSIONID  MsgType = 2
	MsgType_CLOSE      MsgType = 255
)

func (MsgType) Descriptor added in v0.2.6

func (MsgType) Descriptor() protoreflect.EnumDescriptor

func (MsgType) Enum added in v0.2.6

func (x MsgType) Enum() *MsgType

func (MsgType) EnumDescriptor deprecated added in v0.2.6

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

Deprecated: Use MsgType.Descriptor instead.

func (MsgType) Number added in v0.2.6

func (x MsgType) Number() protoreflect.EnumNumber

func (MsgType) String added in v0.2.6

func (x MsgType) String() string

func (MsgType) Type added in v0.2.6

func (MsgType) Type() protoreflect.EnumType

type SessionData added in v0.2.6

type SessionData struct {
	MsgType MsgType `protobuf:"varint,1,opt,name=msgType,proto3,enum=pb.MsgType" json:"msgType,omitempty"`
	Data    []byte  `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionData) Descriptor deprecated added in v0.2.6

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

Deprecated: Use SessionData.ProtoReflect.Descriptor instead.

func (*SessionData) GetData added in v0.2.6

func (x *SessionData) GetData() []byte

func (*SessionData) GetMsgType added in v0.2.6

func (x *SessionData) GetMsgType() MsgType

func (*SessionData) ProtoMessage added in v0.2.6

func (*SessionData) ProtoMessage()

func (*SessionData) ProtoReflect added in v0.2.6

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

func (*SessionData) Reset added in v0.2.6

func (x *SessionData) Reset()

func (*SessionData) String added in v0.2.6

func (x *SessionData) String() string

type SessionMetadata

type SessionMetadata struct {
	Id            []byte      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	SessionType   SessionType `protobuf:"varint,2,opt,name=sessionType,proto3,enum=pb.SessionType" json:"sessionType,omitempty"`
	DialerNknAddr string      `protobuf:"bytes,3,opt,name=dialerNknAddr,proto3" json:"dialerNknAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionMetadata) Descriptor deprecated

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

Deprecated: Use SessionMetadata.ProtoReflect.Descriptor instead.

func (*SessionMetadata) GetDialerNknAddr added in v0.2.6

func (x *SessionMetadata) GetDialerNknAddr() string

func (*SessionMetadata) GetId

func (x *SessionMetadata) GetId() []byte

func (*SessionMetadata) GetSessionType added in v0.2.6

func (x *SessionMetadata) GetSessionType() SessionType

func (*SessionMetadata) ProtoMessage

func (*SessionMetadata) ProtoMessage()

func (*SessionMetadata) ProtoReflect added in v0.2.1

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

func (*SessionMetadata) Reset

func (x *SessionMetadata) Reset()

func (*SessionMetadata) String

func (x *SessionMetadata) String() string

type SessionType added in v0.2.6

type SessionType int32
const (
	SessionType_ST_NONE SessionType = 0
	SessionType_TCP     SessionType = 1
	SessionType_UDP     SessionType = 2
)

func (SessionType) Descriptor added in v0.2.6

func (SessionType) Enum added in v0.2.6

func (x SessionType) Enum() *SessionType

func (SessionType) EnumDescriptor deprecated added in v0.2.6

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

Deprecated: Use SessionType.Descriptor instead.

func (SessionType) Number added in v0.2.6

func (x SessionType) Number() protoreflect.EnumNumber

func (SessionType) String added in v0.2.6

func (x SessionType) String() string

func (SessionType) Type added in v0.2.6

Jump to

Keyboard shortcuts

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