base

package
v0.0.0-...-2693892 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT 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 BaseResponse

type BaseResponse struct {
	StatusCode int64  `thrift:"status_code,1" frugal:"1,default,i64" json:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" frugal:"2,default,string" json:"status_msg"`
}

func NewBaseResponse

func NewBaseResponse() *BaseResponse

func (*BaseResponse) BLength

func (p *BaseResponse) BLength() int

func (*BaseResponse) DeepEqual

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

func (*BaseResponse) FastRead

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

func (*BaseResponse) FastReadField1

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

func (*BaseResponse) FastReadField2

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

func (*BaseResponse) FastWrite

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

for compatibility

func (*BaseResponse) FastWriteNocopy

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

func (*BaseResponse) Field1DeepEqual

func (p *BaseResponse) Field1DeepEqual(src int64) bool

func (*BaseResponse) Field2DeepEqual

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

func (*BaseResponse) GetStatusCode

func (p *BaseResponse) GetStatusCode() (v int64)

func (*BaseResponse) GetStatusMsg

func (p *BaseResponse) GetStatusMsg() (v string)

func (*BaseResponse) InitDefault

func (p *BaseResponse) InitDefault()

func (*BaseResponse) Read

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

func (*BaseResponse) ReadField1

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

func (*BaseResponse) ReadField2

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

func (*BaseResponse) SetStatusCode

func (p *BaseResponse) SetStatusCode(val int64)

func (*BaseResponse) SetStatusMsg

func (p *BaseResponse) SetStatusMsg(val string)

func (*BaseResponse) String

func (p *BaseResponse) String() string

func (*BaseResponse) Write

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

type NilResponse

type NilResponse struct {
}

func NewNilResponse

func NewNilResponse() *NilResponse

func (*NilResponse) BLength

func (p *NilResponse) BLength() int

func (*NilResponse) DeepEqual

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

func (*NilResponse) FastRead

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

func (*NilResponse) FastWrite

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

for compatibility

func (*NilResponse) FastWriteNocopy

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

func (*NilResponse) InitDefault

func (p *NilResponse) InitDefault()

func (*NilResponse) Read

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

func (*NilResponse) String

func (p *NilResponse) String() string

func (*NilResponse) Write

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

type User

type User struct {
	Uuid     string `thrift:"uuid,1" frugal:"1,default,string" json:"uuid"`
	Username string `thrift:"username,2" frugal:"2,default,string" json:"username"`
	Password string `thrift:"password,3" frugal:"3,default,string" json:"password"`
}

func NewUser

func NewUser() *User

func (*User) BLength

func (p *User) BLength() int

func (*User) DeepEqual

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

func (*User) FastRead

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

func (*User) FastReadField1

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

func (*User) FastReadField2

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

func (*User) FastReadField3

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

func (*User) FastWrite

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

for compatibility

func (*User) FastWriteNocopy

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

func (*User) Field1DeepEqual

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

func (*User) Field2DeepEqual

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

func (*User) Field3DeepEqual

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

func (*User) GetPassword

func (p *User) GetPassword() (v string)

func (*User) GetUsername

func (p *User) GetUsername() (v string)

func (*User) GetUuid

func (p *User) GetUuid() (v string)

func (*User) InitDefault

func (p *User) InitDefault()

func (*User) Read

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

func (*User) ReadField1

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

func (*User) ReadField2

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

func (*User) ReadField3

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

func (*User) SetPassword

func (p *User) SetPassword(val string)

func (*User) SetUsername

func (p *User) SetUsername(val string)

func (*User) SetUuid

func (p *User) SetUuid(val string)

func (*User) String

func (p *User) String() string

func (*User) Write

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

Jump to

Keyboard shortcuts

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