Documentation ¶
Index ¶
- Variables
- type Error
- func (p *Error) BLength() int
- func (p *Error) DeepEqual(ano *Error) bool
- func (p *Error) Error() string
- func (p *Error) FastRead(buf []byte) (int, error)
- func (p *Error) FastReadField1(buf []byte) (int, error)
- func (p *Error) FastReadField2(buf []byte) (int, error)
- func (p *Error) FastReadField3(buf []byte) (int, error)
- func (p *Error) FastReadField4(buf []byte) (int, error)
- func (p *Error) FastWrite(buf []byte) int
- func (p *Error) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Error) Field1DeepEqual(src int32) bool
- func (p *Error) Field2DeepEqual(src string) bool
- func (p *Error) Field3DeepEqual(src string) bool
- func (p *Error) Field4DeepEqual(src map[string]string) bool
- func (p *Error) GetCode() (v string)
- func (p *Error) GetData() (v map[string]string)
- func (p *Error) GetHTTPCode() (v int32)
- func (p *Error) GetMessage() (v string)
- func (p *Error) Read(iprot thrift.TProtocol) (err error)
- func (p *Error) ReadField1(iprot thrift.TProtocol) error
- func (p *Error) ReadField2(iprot thrift.TProtocol) error
- func (p *Error) ReadField3(iprot thrift.TProtocol) error
- func (p *Error) ReadField4(iprot thrift.TProtocol) error
- func (p *Error) SetCode(val string)
- func (p *Error) SetData(val map[string]string)
- func (p *Error) SetHTTPCode(val int32)
- func (p *Error) SetMessage(val string)
- func (p *Error) String() string
- func (p *Error) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { HTTPCode int32 `thrift:"HTTPCode,1" json:"HTTPCode"` Code string `thrift:"Code,2" json:"Code"` Message string `thrift:"Message,3" json:"Message"` Data map[string]string `thrift:"Data,4" json:"Data,omitempty"` }
func (*Error) FastWriteNocopy ¶
func (p *Error) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Error) Field1DeepEqual ¶
func (*Error) Field2DeepEqual ¶
func (*Error) Field3DeepEqual ¶
func (*Error) GetHTTPCode ¶
func (*Error) GetMessage ¶
func (*Error) SetHTTPCode ¶
func (*Error) SetMessage ¶
Click to show internal directories.
Click to hide internal directories.