common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 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.

View Source
var TopParam_RoleId_DEFAULT int64 = 0
View Source
var TopParam_UserId_DEFAULT int64 = 0

Functions

This section is empty.

Types

type EmptyResponse

type EmptyResponse struct {
}

func NewEmptyResponse

func NewEmptyResponse() *EmptyResponse

func (*EmptyResponse) BLength

func (p *EmptyResponse) BLength() int

func (*EmptyResponse) DeepEqual

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

func (*EmptyResponse) FastRead

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

func (*EmptyResponse) FastWrite

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

for compatibility

func (*EmptyResponse) FastWriteNocopy

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

func (*EmptyResponse) Read

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

func (*EmptyResponse) String

func (p *EmptyResponse) String() string

func (*EmptyResponse) Write

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

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"`
}

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)

type TopParam

type TopParam struct {
	RequestId string `thrift:"RequestId,1,required" header:"X-Top-Request-Id"`
	AccountId int64  `thrift:"AccountId,2,required" header:"X-Top-Account-Id"`
	UserId    int64  `thrift:"UserId,3" header:"X-Top-User-Id"`
	RoleId    int64  `thrift:"RoleId,4" header:"X-Top-Role-Id"`
}

func NewTopParam

func NewTopParam() *TopParam

func (*TopParam) BLength

func (p *TopParam) BLength() int

func (*TopParam) DeepEqual

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

func (*TopParam) FastRead

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

func (*TopParam) FastReadField1

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

func (*TopParam) FastReadField2

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

func (*TopParam) FastReadField3

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

func (*TopParam) FastReadField4

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

func (*TopParam) FastWrite

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

for compatibility

func (*TopParam) FastWriteNocopy

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

func (*TopParam) Field1DeepEqual

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

func (*TopParam) Field2DeepEqual

func (p *TopParam) Field2DeepEqual(src int64) bool

func (*TopParam) Field3DeepEqual

func (p *TopParam) Field3DeepEqual(src int64) bool

func (*TopParam) Field4DeepEqual

func (p *TopParam) Field4DeepEqual(src int64) bool

func (*TopParam) GetAccountId

func (p *TopParam) GetAccountId() (v int64)

func (*TopParam) GetRequestId

func (p *TopParam) GetRequestId() (v string)

func (*TopParam) GetRoleId

func (p *TopParam) GetRoleId() (v int64)

func (*TopParam) GetUserId

func (p *TopParam) GetUserId() (v int64)

func (*TopParam) IsSetRoleId

func (p *TopParam) IsSetRoleId() bool

func (*TopParam) IsSetUserId

func (p *TopParam) IsSetUserId() bool

func (*TopParam) Read

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

func (*TopParam) ReadField1

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

func (*TopParam) ReadField2

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

func (*TopParam) ReadField3

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

func (*TopParam) ReadField4

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

func (*TopParam) SetAccountId

func (p *TopParam) SetAccountId(val int64)

func (*TopParam) SetRequestId

func (p *TopParam) SetRequestId(val string)

func (*TopParam) SetRoleId

func (p *TopParam) SetRoleId(val int64)

func (*TopParam) SetUserId

func (p *TopParam) SetUserId(val int64)

func (*TopParam) String

func (p *TopParam) String() string

func (*TopParam) Write

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

Jump to

Keyboard shortcuts

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