common

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 NewError

func NewError() *Error

func (*Error) BLength

func (p *Error) BLength() int

func (*Error) DeepEqual

func (p *Error) DeepEqual(ano *Error) bool

func (*Error) Error

func (p *Error) Error() string

func (*Error) FastRead

func (p *Error) FastRead(buf []byte) (int, error)

func (*Error) FastReadField1

func (p *Error) FastReadField1(buf []byte) (int, error)

func (*Error) FastReadField2

func (p *Error) FastReadField2(buf []byte) (int, error)

func (*Error) FastReadField3

func (p *Error) FastReadField3(buf []byte) (int, error)

func (*Error) FastReadField4

func (p *Error) FastReadField4(buf []byte) (int, error)

func (*Error) FastWrite

func (p *Error) FastWrite(buf []byte) int

for compatibility

func (*Error) FastWriteNocopy

func (p *Error) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Error) Field1DeepEqual

func (p *Error) Field1DeepEqual(src int32) bool

func (*Error) Field2DeepEqual

func (p *Error) Field2DeepEqual(src string) bool

func (*Error) Field3DeepEqual

func (p *Error) Field3DeepEqual(src string) bool

func (*Error) Field4DeepEqual

func (p *Error) Field4DeepEqual(src map[string]string) bool

func (*Error) GetCode

func (p *Error) GetCode() (v string)

func (*Error) GetData

func (p *Error) GetData() (v map[string]string)

func (*Error) GetHTTPCode

func (p *Error) GetHTTPCode() (v int32)

func (*Error) GetMessage

func (p *Error) GetMessage() (v string)

func (*Error) Read

func (p *Error) Read(iprot thrift.TProtocol) (err error)

func (*Error) ReadField1

func (p *Error) ReadField1(iprot thrift.TProtocol) error

func (*Error) ReadField2

func (p *Error) ReadField2(iprot thrift.TProtocol) error

func (*Error) ReadField3

func (p *Error) ReadField3(iprot thrift.TProtocol) error

func (*Error) ReadField4

func (p *Error) ReadField4(iprot thrift.TProtocol) error

func (*Error) SetCode

func (p *Error) SetCode(val string)

func (*Error) SetData

func (p *Error) SetData(val map[string]string)

func (*Error) SetHTTPCode

func (p *Error) SetHTTPCode(val int32)

func (*Error) SetMessage

func (p *Error) SetMessage(val string)

func (*Error) String

func (p *Error) String() string

func (*Error) Write

func (p *Error) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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