pb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error deprecated

type Error struct {
	ErrCode              int32    `protobuf:"varint,1,opt,name=err_code,json=errCode,proto3" json:"err_code,omitempty"`
	ErrMessage           string   `protobuf:"bytes,2,opt,name=err_message,json=errMessage,proto3" json:"err_message,omitempty"`
	ErrDetail            *any.Any `protobuf:"bytes,3,opt,name=err_detail,json=errDetail,proto3" json:"err_detail,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Deprecated: please use ecode.Error

func From deprecated

func From(ec ecode.Codes) *Error

From will convert ecode.Codes to pb.Error.

Deprecated: please use ecode.Error

func (*Error) Code

func (e *Error) Code() int

Code is the code of error.

func (*Error) Descriptor

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

func (*Error) Details

func (e *Error) Details() []interface{}

Details return error details.

func (*Error) Equal

func (e *Error) Equal(ec error) bool

Equal compare whether two errors are equal.

func (*Error) Error

func (e *Error) Error() string

func (*Error) GetErrCode

func (m *Error) GetErrCode() int32

func (*Error) GetErrDetail

func (m *Error) GetErrDetail() *any.Any

func (*Error) GetErrMessage

func (m *Error) GetErrMessage() string

func (*Error) Message

func (e *Error) Message() string

Message is error message.

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge

func (dst *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

func (m *Error) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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