base

package
v0.0.0-...-2486f02 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseResp_Extra_DEFAULT map[string]string
View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type BaseResp

type BaseResp struct {
	StatusMessage string            `thrift:"StatusMessage,1" json:"StatusMessage"`
	StatusCode    int32             `thrift:"StatusCode,2" json:"StatusCode"`
	Extra         map[string]string `thrift:"Extra,3,optional" json:"Extra,omitempty"`
}

func NewBaseResp

func NewBaseResp() *BaseResp

func (*BaseResp) BLength

func (p *BaseResp) BLength() int

func (*BaseResp) DeepEqual

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

func (*BaseResp) FastRead

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

func (*BaseResp) FastReadField1

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

func (*BaseResp) FastReadField2

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

func (*BaseResp) FastReadField3

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

func (*BaseResp) FastWrite

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

for compatibility

func (*BaseResp) FastWriteNocopy

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

func (*BaseResp) Field1DeepEqual

func (p *BaseResp) Field1DeepEqual(src string) bool

func (*BaseResp) Field2DeepEqual

func (p *BaseResp) Field2DeepEqual(src int32) bool

func (*BaseResp) Field3DeepEqual

func (p *BaseResp) Field3DeepEqual(src map[string]string) bool

func (*BaseResp) GetExtra

func (p *BaseResp) GetExtra() (v map[string]string)

func (*BaseResp) GetStatusCode

func (p *BaseResp) GetStatusCode() (v int32)

func (*BaseResp) GetStatusMessage

func (p *BaseResp) GetStatusMessage() (v string)

func (*BaseResp) IsSetExtra

func (p *BaseResp) IsSetExtra() bool

func (*BaseResp) Read

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

func (*BaseResp) ReadField1

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

func (*BaseResp) ReadField2

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

func (*BaseResp) ReadField3

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

func (*BaseResp) SetExtra

func (p *BaseResp) SetExtra(val map[string]string)

func (*BaseResp) SetStatusCode

func (p *BaseResp) SetStatusCode(val int32)

func (*BaseResp) SetStatusMessage

func (p *BaseResp) SetStatusMessage(val string)

func (*BaseResp) String

func (p *BaseResp) String() string

func (*BaseResp) Write

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

Jump to

Keyboard shortcuts

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