pb

package
v0.0.0-...-7429660 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	DmError              *int32   `protobuf:"varint,1,req,name=dm_error,json=dmError" json:"dm_error,omitempty"`
	ErrMsg               *string  `protobuf:"bytes,2,req,name=err_msg,json=errMsg" json:"err_msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func From

func From(ec ecode.Codes) *Error

From will convert ecode.Codes to pb.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) 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) GetDmError

func (m *Error) GetDmError() int32

func (*Error) GetErrMsg

func (m *Error) GetErrMsg() 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