bs_router

package
v0.0.0-...-155bb80 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package bs_router is a generated protocol buffer package.

It is generated from these files:

github.com/3zheng/railgun/protodefine/router/router.proto

It has these top-level messages:

RouterTransferData
RegisterAppReq
RegisterAppRsp

Index

Constants

This section is empty.

Variables

View Source
var CMDID_Router_name = map[int32]string{
	0:   "IDUnknow",
	1:   "IDTransferData",
	2:   "IDRegisterAppReq",
	3:   "IDRegisterAppRsp",
	100: "IDLast",
}
View Source
var CMDID_Router_value = map[string]int32{
	"IDUnknow":         0,
	"IDTransferData":   1,
	"IDRegisterAppReq": 2,
	"IDRegisterAppRsp": 3,
	"IDLast":           100,
}
View Source
var RouterTransferData_DataDirection_name = map[int32]string{
	0: "App2App",
	1: "App2Client",
	2: "Client2App",
}
View Source
var RouterTransferData_DataDirection_value = map[string]int32{
	"App2App":    0,
	"App2Client": 1,
	"Client2App": 2,
}

Functions

This section is empty.

Types

type CMDID_Router

type CMDID_Router int32
const (
	CMDID_Router_IDUnknow         CMDID_Router = 0
	CMDID_Router_IDTransferData   CMDID_Router = 1
	CMDID_Router_IDRegisterAppReq CMDID_Router = 2
	CMDID_Router_IDRegisterAppRsp CMDID_Router = 3
	CMDID_Router_IDLast           CMDID_Router = 100
)

func (CMDID_Router) EnumDescriptor

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

func (CMDID_Router) String

func (x CMDID_Router) String() string

type RegisterAppReq

type RegisterAppReq struct {
	Base      *bs_types.BaseInfo `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"`
	AuthKey   string             `protobuf:"bytes,2,opt,name=auth_key,json=authKey" json:"auth_key,omitempty"`
	AttData   string             `protobuf:"bytes,3,opt,name=att_data,json=attData" json:"att_data,omitempty"`
	MyAddress string             `protobuf:"bytes,4,opt,name=my_address,json=myAddress" json:"my_address,omitempty"`
	AppType   uint32             `protobuf:"varint,5,opt,name=app_type,json=appType" json:"app_type,omitempty"`
	AppId     uint32             `protobuf:"varint,6,opt,name=app_id,json=appId" json:"app_id,omitempty"`
}

func (*RegisterAppReq) Descriptor

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

func (*RegisterAppReq) GetBase

func (m *RegisterAppReq) GetBase() *bs_types.BaseInfo

func (*RegisterAppReq) ProtoMessage

func (*RegisterAppReq) ProtoMessage()

func (*RegisterAppReq) Reset

func (m *RegisterAppReq) Reset()

func (*RegisterAppReq) String

func (m *RegisterAppReq) String() string

type RegisterAppRsp

type RegisterAppRsp struct {
	Base      *bs_types.BaseInfo `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"`
	RegResult uint32             `protobuf:"varint,2,opt,name=reg_result,json=regResult" json:"reg_result,omitempty"`
}

func (*RegisterAppRsp) Descriptor

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

func (*RegisterAppRsp) GetBase

func (m *RegisterAppRsp) GetBase() *bs_types.BaseInfo

func (*RegisterAppRsp) ProtoMessage

func (*RegisterAppRsp) ProtoMessage()

func (*RegisterAppRsp) Reset

func (m *RegisterAppRsp) Reset()

func (*RegisterAppRsp) String

func (m *RegisterAppRsp) String() string

type RouterTransferData

type RouterTransferData struct {
	Base          *bs_types.BaseInfo               `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"`
	DestApptype   uint32                           `protobuf:"varint,2,opt,name=dest_apptype,json=destApptype" json:"dest_apptype,omitempty"`
	DestAppid     uint32                           `protobuf:"varint,3,opt,name=dest_appid,json=destAppid" json:"dest_appid,omitempty"`
	SrcApptype    uint32                           `protobuf:"varint,4,opt,name=src_apptype,json=srcApptype" json:"src_apptype,omitempty"`
	SrcAppid      uint32                           `protobuf:"varint,5,opt,name=src_appid,json=srcAppid" json:"src_appid,omitempty"`
	DataCmdKind   uint32                           `protobuf:"varint,6,opt,name=data_cmd_kind,json=dataCmdKind" json:"data_cmd_kind,omitempty"`
	DataCmdSubid  uint32                           `protobuf:"varint,7,opt,name=data_cmd_subid,json=dataCmdSubid" json:"data_cmd_subid,omitempty"`
	Data          []byte                           `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"`
	DataDirection RouterTransferData_DataDirection `` /* 142-byte string literal not displayed */
	// 如果是App2Client或者Client2App,下面4项有值,如果是App2App则可以不填
	ClientRemoteAddress string `protobuf:"bytes,10,opt,name=client_remote_address,json=clientRemoteAddress" json:"client_remote_address,omitempty"`
	AttGateid           uint32 `protobuf:"varint,11,opt,name=att_gateid,json=attGateid" json:"att_gateid,omitempty"`
	AttUserid           uint64 `protobuf:"varint,12,opt,name=att_userid,json=attUserid" json:"att_userid,omitempty"`
	AttGateconnid       uint64 `protobuf:"varint,13,opt,name=att_gateconnid,json=attGateconnid" json:"att_gateconnid,omitempty"`
}

func (*RouterTransferData) Descriptor

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

func (*RouterTransferData) GetBase

func (m *RouterTransferData) GetBase() *bs_types.BaseInfo

func (*RouterTransferData) ProtoMessage

func (*RouterTransferData) ProtoMessage()

func (*RouterTransferData) Reset

func (m *RouterTransferData) Reset()

func (*RouterTransferData) String

func (m *RouterTransferData) String() string

type RouterTransferData_DataDirection

type RouterTransferData_DataDirection int32
const (
	RouterTransferData_App2App    RouterTransferData_DataDirection = 0
	RouterTransferData_App2Client RouterTransferData_DataDirection = 1
	RouterTransferData_Client2App RouterTransferData_DataDirection = 2
)

func (RouterTransferData_DataDirection) EnumDescriptor

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

func (RouterTransferData_DataDirection) String

Jump to

Keyboard shortcuts

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