basepb

package
v0.0.0-...-a5d5012 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_basepb_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

基础结构,主要提供给tcp内部使用,目前客户端用不到

func (*Base) Descriptor deprecated

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

Deprecated: Use Base.ProtoReflect.Descriptor instead.

func (*Base) ProtoMessage

func (*Base) ProtoMessage()

func (*Base) ProtoReflect

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

func (*Base) Reset

func (x *Base) Reset()

func (*Base) String

func (x *Base) String() string

type Base_Error

type Base_Error struct {
	ErrorCode    int64    `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	ErrorMessage string   `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	Fields       []string `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

rpc 发生错误时可以返回这个值

func (*Base_Error) Descriptor deprecated

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

Deprecated: Use Base_Error.ProtoReflect.Descriptor instead.

func (*Base_Error) GetErrorCode

func (x *Base_Error) GetErrorCode() int64

func (*Base_Error) GetErrorMessage

func (x *Base_Error) GetErrorMessage() string

func (*Base_Error) GetFields

func (x *Base_Error) GetFields() []string

func (*Base_Error) ProtoMessage

func (*Base_Error) ProtoMessage()

func (*Base_Error) ProtoReflect

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

func (*Base_Error) Reset

func (x *Base_Error) Reset()

func (*Base_Error) String

func (x *Base_Error) String() string

type Base_Success

type Base_Success struct {
	// contains filtered or unexported fields
}

rpc 无消息返回时可以返回这个值

func (*Base_Success) Descriptor deprecated

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

Deprecated: Use Base_Success.ProtoReflect.Descriptor instead.

func (*Base_Success) ProtoMessage

func (*Base_Success) ProtoMessage()

func (*Base_Success) ProtoReflect

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

func (*Base_Success) Reset

func (x *Base_Success) Reset()

func (*Base_Success) String

func (x *Base_Success) String() string

Jump to

Keyboard shortcuts

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