pb

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CMD_name = map[int32]string{
		0: "INVALID",
		1: "GreeterHello",
	}
	CMD_value = map[string]int32{
		"INVALID":      0,
		"GreeterHello": 1,
	}
)

Enum value maps for CMD.

View Source
var (
	AuthType_name = map[int32]string{
		0: "AuthNone",
		1: "JwtAuthToken",
		2: "AuthManager",
	}
	AuthType_value = map[string]int32{
		"AuthNone":     0,
		"JwtAuthToken": 1,
		"AuthManager":  2,
	}
)

Enum value maps for AuthType.

View Source
var (
	ServiceName_name = map[int32]string{
		0: "ServerNone",
		1: "ServerGate",
		2: "ServiceLogin",
		3: "ServiceLogic",
	}
	ServiceName_value = map[string]int32{
		"ServerNone":   0,
		"ServerGate":   1,
		"ServiceLogin": 2,
		"ServiceLogic": 3,
	}
)

Enum value maps for ServiceName.

View Source
var (
	// See `ProtoIdRule`
	//
	// optional extend.ProtoIdRule id = 1001;
	E_Id = &file_extend_proto_extTypes[0]
	// 若 auth_method 定义则优先使用,否则使用 service 的定义
	//
	// optional extend.AuthType auth_method = 1002;
	E_AuthMethod = &file_extend_proto_extTypes[1]
)

Extension fields to descriptor.MethodOptions.

View Source
var (
	// optional extend.AuthType auth_service = 1002;
	E_AuthService = &file_extend_proto_extTypes[2]
	// optional extend.ServiceName service_name = 1004;
	E_ServiceName = &file_extend_proto_extTypes[3]
)

Extension fields to descriptor.ServiceOptions.

View Source
var File_extend_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthType

type AuthType int32

鉴权类型

const (
	AuthType_AuthNone    AuthType = 0 // 无鉴权
	AuthType_AuthUser    AuthType = 1 // 玩家鉴权
	AuthType_AuthManager AuthType = 2 // 内部管理接口
)

func (AuthType) Descriptor

func (AuthType) Descriptor() protoreflect.EnumDescriptor

func (AuthType) Enum

func (x AuthType) Enum() *AuthType

func (AuthType) EnumDescriptor deprecated

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

Deprecated: Use AuthType.Descriptor instead.

func (AuthType) Number

func (x AuthType) Number() protoreflect.EnumNumber

func (AuthType) String

func (x AuthType) String() string

func (AuthType) Type

type CMD

type CMD int32
const (
	CMD_INVALID      CMD = 0
	CMD_GreeterHello CMD = 1
)

func (CMD) Descriptor

func (CMD) Descriptor() protoreflect.EnumDescriptor

func (CMD) Enum

func (x CMD) Enum() *CMD

func (CMD) EnumDescriptor deprecated

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

Deprecated: Use CMD.Descriptor instead.

func (CMD) Number

func (x CMD) Number() protoreflect.EnumNumber

func (CMD) String

func (x CMD) String() string

func (CMD) Type

func (CMD) Type() protoreflect.EnumType

type ProtoId

type ProtoId struct {
	Rules []*ProtoIdRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoId) Descriptor deprecated

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

Deprecated: Use ProtoId.ProtoReflect.Descriptor instead.

func (*ProtoId) GetRules

func (x *ProtoId) GetRules() []*ProtoIdRule

func (*ProtoId) ProtoMessage

func (*ProtoId) ProtoMessage()

func (*ProtoId) ProtoReflect

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

func (*ProtoId) Reset

func (x *ProtoId) Reset()

func (*ProtoId) String

func (x *ProtoId) String() string

type ProtoIdRule

type ProtoIdRule struct {
	Cmd CMD `protobuf:"varint,1,opt,name=cmd,proto3,enum=CMD" json:"cmd,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoIdRule) Descriptor deprecated

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

Deprecated: Use ProtoIdRule.ProtoReflect.Descriptor instead.

func (*ProtoIdRule) GetCmd

func (x *ProtoIdRule) GetCmd() CMD

func (*ProtoIdRule) ProtoMessage

func (*ProtoIdRule) ProtoMessage()

func (*ProtoIdRule) ProtoReflect

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

func (*ProtoIdRule) Reset

func (x *ProtoIdRule) Reset()

func (*ProtoIdRule) String

func (x *ProtoIdRule) String() string

type ServiceName

type ServiceName int32
const (
	ServiceName_ServerNone   ServiceName = 0
	ServiceName_ServerGate   ServiceName = 1
	ServiceName_ServiceLogin ServiceName = 2
	ServiceName_ServiceLogic ServiceName = 3
)

func (ServiceName) Descriptor

func (ServiceName) Enum

func (x ServiceName) Enum() *ServiceName

func (ServiceName) EnumDescriptor deprecated

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

Deprecated: Use ServiceName.Descriptor instead.

func (ServiceName) Number

func (x ServiceName) Number() protoreflect.EnumNumber

func (ServiceName) String

func (x ServiceName) String() string

func (ServiceName) Type

Jump to

Keyboard shortcuts

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