Documentation ¶
Index ¶
- Variables
- type Exception
- func (p *Exception) BLength() int
- func (p *Exception) DeepEqual(ano *Exception) bool
- func (p *Exception) Error() string
- func (p *Exception) FastRead(buf []byte) (int, error)
- func (p *Exception) FastReadField1(buf []byte) (int, error)
- func (p *Exception) FastReadField255(buf []byte) (int, error)
- func (p *Exception) FastWrite(buf []byte) int
- func (p *Exception) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
- func (p *Exception) Field1DeepEqual(src int32) bool
- func (p *Exception) Field255DeepEqual(src string) bool
- func (p *Exception) GetCode() (v int32)
- func (p *Exception) GetMsg() (v string)
- func (p *Exception) InitDefault()
- func (p *Exception) SetCode(val int32)
- func (p *Exception) SetMsg(val string)
- func (p *Exception) String() string
- type Mock
- type MockExceptionTestArgs
- func (p *MockExceptionTestArgs) BLength() int
- func (p *MockExceptionTestArgs) DeepEqual(ano *MockExceptionTestArgs) bool
- func (p *MockExceptionTestArgs) FastRead(buf []byte) (int, error)
- func (p *MockExceptionTestArgs) FastReadField1(buf []byte) (int, error)
- func (p *MockExceptionTestArgs) FastWrite(buf []byte) int
- func (p *MockExceptionTestArgs) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
- func (p *MockExceptionTestArgs) Field1DeepEqual(src *MockReq) bool
- func (p *MockExceptionTestArgs) GetFirstArgument() interface{}
- func (p *MockExceptionTestArgs) GetReq() (v *MockReq)
- func (p *MockExceptionTestArgs) InitDefault()
- func (p *MockExceptionTestArgs) IsSetReq() bool
- func (p *MockExceptionTestArgs) SetReq(val *MockReq)
- func (p *MockExceptionTestArgs) String() string
- type MockExceptionTestResult
- func (p *MockExceptionTestResult) BLength() int
- func (p *MockExceptionTestResult) DeepEqual(ano *MockExceptionTestResult) bool
- func (p *MockExceptionTestResult) FastRead(buf []byte) (int, error)
- func (p *MockExceptionTestResult) FastReadField0(buf []byte) (int, error)
- func (p *MockExceptionTestResult) FastReadField1(buf []byte) (int, error)
- func (p *MockExceptionTestResult) FastWrite(buf []byte) int
- func (p *MockExceptionTestResult) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
- func (p *MockExceptionTestResult) Field0DeepEqual(src *string) bool
- func (p *MockExceptionTestResult) Field1DeepEqual(src *Exception) bool
- func (p *MockExceptionTestResult) GetErr() (v *Exception)
- func (p *MockExceptionTestResult) GetResult() interface{}
- func (p *MockExceptionTestResult) GetSuccess() (v string)
- func (p *MockExceptionTestResult) InitDefault()
- func (p *MockExceptionTestResult) IsSetErr() bool
- func (p *MockExceptionTestResult) IsSetSuccess() bool
- func (p *MockExceptionTestResult) SetErr(val *Exception)
- func (p *MockExceptionTestResult) SetSuccess(x interface{})
- func (p *MockExceptionTestResult) String() string
- type MockReq
- func (p *MockReq) BLength() int
- func (p *MockReq) DeepEqual(ano *MockReq) bool
- func (p *MockReq) FastRead(buf []byte) (int, error)
- func (p *MockReq) FastReadField1(buf []byte) (int, error)
- func (p *MockReq) FastReadField2(buf []byte) (int, error)
- func (p *MockReq) FastReadField3(buf []byte) (int, error)
- func (p *MockReq) FastWrite(buf []byte) int
- func (p *MockReq) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
- func (p *MockReq) Field1DeepEqual(src string) bool
- func (p *MockReq) Field2DeepEqual(src map[string]string) bool
- func (p *MockReq) Field3DeepEqual(src []string) bool
- func (p *MockReq) GetMsg() (v string)
- func (p *MockReq) GetStrList() (v []string)
- func (p *MockReq) GetStrMap() (v map[string]string)
- func (p *MockReq) InitDefault()
- func (p *MockReq) SetMsg(val string)
- func (p *MockReq) SetStrList(val []string)
- func (p *MockReq) SetStrMap(val map[string]string)
- func (p *MockReq) String() string
- type MockTestArgs
- func (p *MockTestArgs) BLength() int
- func (p *MockTestArgs) DeepEqual(ano *MockTestArgs) bool
- func (p *MockTestArgs) FastRead(buf []byte) (int, error)
- func (p *MockTestArgs) FastReadField1(buf []byte) (int, error)
- func (p *MockTestArgs) FastWrite(buf []byte) int
- func (p *MockTestArgs) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
- func (p *MockTestArgs) Field1DeepEqual(src *MockReq) bool
- func (p *MockTestArgs) GetFirstArgument() interface{}
- func (p *MockTestArgs) GetReq() (v *MockReq)
- func (p *MockTestArgs) InitDefault()
- func (p *MockTestArgs) IsSetReq() bool
- func (p *MockTestArgs) SetReq(val *MockReq)
- func (p *MockTestArgs) String() string
- type MockTestResult
- func (p *MockTestResult) BLength() int
- func (p *MockTestResult) DeepEqual(ano *MockTestResult) bool
- func (p *MockTestResult) FastRead(buf []byte) (int, error)
- func (p *MockTestResult) FastReadField0(buf []byte) (int, error)
- func (p *MockTestResult) FastWrite(buf []byte) int
- func (p *MockTestResult) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
- func (p *MockTestResult) Field0DeepEqual(src *string) bool
- func (p *MockTestResult) GetResult() interface{}
- func (p *MockTestResult) GetSuccess() (v string)
- func (p *MockTestResult) InitDefault()
- func (p *MockTestResult) IsSetSuccess() bool
- func (p *MockTestResult) SetSuccess(x interface{})
- func (p *MockTestResult) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
View Source
var MockExceptionTestResult_Success_DEFAULT string
View Source
var MockTestResult_Success_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type Exception ¶ added in v0.7.0
type Exception struct { Code int32 `thrift:"code,1" frugal:"1,default,i32" json:"code"` Msg string `thrift:"msg,255" frugal:"255,default,string" json:"msg"` }
var MockExceptionTestResult_Err_DEFAULT *Exception
func NewException ¶ added in v0.7.0
func NewException() *Exception
func (*Exception) FastReadField1 ¶ added in v0.11.0
func (*Exception) FastReadField255 ¶ added in v0.11.0
func (*Exception) FastWriteNocopy ¶ added in v0.11.0
func (p *Exception) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
func (*Exception) Field1DeepEqual ¶ added in v0.7.0
func (*Exception) Field255DeepEqual ¶ added in v0.7.0
func (*Exception) InitDefault ¶ added in v0.11.0
func (p *Exception) InitDefault()
type MockExceptionTestArgs ¶ added in v0.7.0
type MockExceptionTestArgs struct {
Req *MockReq `thrift:"req,1" frugal:"1,default,MockReq" json:"req"`
}
func NewMockExceptionTestArgs ¶ added in v0.7.0
func NewMockExceptionTestArgs() *MockExceptionTestArgs
func (*MockExceptionTestArgs) BLength ¶ added in v0.11.0
func (p *MockExceptionTestArgs) BLength() int
func (*MockExceptionTestArgs) DeepEqual ¶ added in v0.7.0
func (p *MockExceptionTestArgs) DeepEqual(ano *MockExceptionTestArgs) bool
func (*MockExceptionTestArgs) FastRead ¶ added in v0.11.0
func (p *MockExceptionTestArgs) FastRead(buf []byte) (int, error)
func (*MockExceptionTestArgs) FastReadField1 ¶ added in v0.11.0
func (p *MockExceptionTestArgs) FastReadField1(buf []byte) (int, error)
func (*MockExceptionTestArgs) FastWrite ¶ added in v0.11.0
func (p *MockExceptionTestArgs) FastWrite(buf []byte) int
for compatibility
func (*MockExceptionTestArgs) FastWriteNocopy ¶ added in v0.11.0
func (p *MockExceptionTestArgs) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
func (*MockExceptionTestArgs) Field1DeepEqual ¶ added in v0.7.0
func (p *MockExceptionTestArgs) Field1DeepEqual(src *MockReq) bool
func (*MockExceptionTestArgs) GetFirstArgument ¶ added in v0.11.0
func (p *MockExceptionTestArgs) GetFirstArgument() interface{}
func (*MockExceptionTestArgs) GetReq ¶ added in v0.7.0
func (p *MockExceptionTestArgs) GetReq() (v *MockReq)
func (*MockExceptionTestArgs) InitDefault ¶ added in v0.11.0
func (p *MockExceptionTestArgs) InitDefault()
func (*MockExceptionTestArgs) IsSetReq ¶ added in v0.7.0
func (p *MockExceptionTestArgs) IsSetReq() bool
func (*MockExceptionTestArgs) SetReq ¶ added in v0.7.0
func (p *MockExceptionTestArgs) SetReq(val *MockReq)
func (*MockExceptionTestArgs) String ¶ added in v0.7.0
func (p *MockExceptionTestArgs) String() string
type MockExceptionTestResult ¶ added in v0.7.0
type MockExceptionTestResult struct { Success *string `thrift:"success,0,optional" frugal:"0,optional,string" json:"success,omitempty"` Err *Exception `thrift:"err,1,optional" frugal:"1,optional,Exception" json:"err,omitempty"` }
func NewMockExceptionTestResult ¶ added in v0.7.0
func NewMockExceptionTestResult() *MockExceptionTestResult
func (*MockExceptionTestResult) BLength ¶ added in v0.11.0
func (p *MockExceptionTestResult) BLength() int
func (*MockExceptionTestResult) DeepEqual ¶ added in v0.7.0
func (p *MockExceptionTestResult) DeepEqual(ano *MockExceptionTestResult) bool
func (*MockExceptionTestResult) FastRead ¶ added in v0.11.0
func (p *MockExceptionTestResult) FastRead(buf []byte) (int, error)
func (*MockExceptionTestResult) FastReadField0 ¶ added in v0.11.0
func (p *MockExceptionTestResult) FastReadField0(buf []byte) (int, error)
func (*MockExceptionTestResult) FastReadField1 ¶ added in v0.11.0
func (p *MockExceptionTestResult) FastReadField1(buf []byte) (int, error)
func (*MockExceptionTestResult) FastWrite ¶ added in v0.11.0
func (p *MockExceptionTestResult) FastWrite(buf []byte) int
for compatibility
func (*MockExceptionTestResult) FastWriteNocopy ¶ added in v0.11.0
func (p *MockExceptionTestResult) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
func (*MockExceptionTestResult) Field0DeepEqual ¶ added in v0.7.0
func (p *MockExceptionTestResult) Field0DeepEqual(src *string) bool
func (*MockExceptionTestResult) Field1DeepEqual ¶ added in v0.7.0
func (p *MockExceptionTestResult) Field1DeepEqual(src *Exception) bool
func (*MockExceptionTestResult) GetErr ¶ added in v0.7.0
func (p *MockExceptionTestResult) GetErr() (v *Exception)
func (*MockExceptionTestResult) GetResult ¶ added in v0.11.0
func (p *MockExceptionTestResult) GetResult() interface{}
func (*MockExceptionTestResult) GetSuccess ¶ added in v0.7.0
func (p *MockExceptionTestResult) GetSuccess() (v string)
func (*MockExceptionTestResult) InitDefault ¶ added in v0.11.0
func (p *MockExceptionTestResult) InitDefault()
func (*MockExceptionTestResult) IsSetErr ¶ added in v0.7.0
func (p *MockExceptionTestResult) IsSetErr() bool
func (*MockExceptionTestResult) IsSetSuccess ¶ added in v0.7.0
func (p *MockExceptionTestResult) IsSetSuccess() bool
func (*MockExceptionTestResult) SetErr ¶ added in v0.7.0
func (p *MockExceptionTestResult) SetErr(val *Exception)
func (*MockExceptionTestResult) SetSuccess ¶ added in v0.7.0
func (p *MockExceptionTestResult) SetSuccess(x interface{})
func (*MockExceptionTestResult) String ¶ added in v0.7.0
func (p *MockExceptionTestResult) String() string
type MockReq ¶
type MockReq struct { Msg string `thrift:"Msg,1" frugal:"1,default,string" json:"Msg"` StrMap map[string]string `thrift:"strMap,2" frugal:"2,default,map<string:string>" json:"strMap"` StrList []string `thrift:"strList,3" frugal:"3,default,list<string>" json:"strList"` }
var MockExceptionTestArgs_Req_DEFAULT *MockReq
var MockTestArgs_Req_DEFAULT *MockReq
func NewMockReq ¶
func NewMockReq() *MockReq
func (*MockReq) FastReadField1 ¶ added in v0.11.0
func (*MockReq) FastReadField2 ¶ added in v0.11.0
func (*MockReq) FastReadField3 ¶ added in v0.11.0
func (*MockReq) FastWriteNocopy ¶ added in v0.11.0
func (p *MockReq) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
func (*MockReq) Field1DeepEqual ¶ added in v0.4.4
func (*MockReq) Field2DeepEqual ¶ added in v0.4.4
func (*MockReq) Field3DeepEqual ¶ added in v0.4.4
func (*MockReq) GetStrList ¶
func (*MockReq) InitDefault ¶ added in v0.11.0
func (p *MockReq) InitDefault()
func (*MockReq) SetStrList ¶
type MockTestArgs ¶
type MockTestArgs struct {
Req *MockReq `thrift:"req,1" frugal:"1,default,MockReq" json:"req"`
}
func NewMockTestArgs ¶
func NewMockTestArgs() *MockTestArgs
func (*MockTestArgs) BLength ¶ added in v0.11.0
func (p *MockTestArgs) BLength() int
func (*MockTestArgs) DeepEqual ¶ added in v0.4.4
func (p *MockTestArgs) DeepEqual(ano *MockTestArgs) bool
func (*MockTestArgs) FastRead ¶ added in v0.11.0
func (p *MockTestArgs) FastRead(buf []byte) (int, error)
func (*MockTestArgs) FastReadField1 ¶ added in v0.11.0
func (p *MockTestArgs) FastReadField1(buf []byte) (int, error)
func (*MockTestArgs) FastWrite ¶ added in v0.11.0
func (p *MockTestArgs) FastWrite(buf []byte) int
for compatibility
func (*MockTestArgs) FastWriteNocopy ¶ added in v0.11.0
func (p *MockTestArgs) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
func (*MockTestArgs) Field1DeepEqual ¶ added in v0.4.4
func (p *MockTestArgs) Field1DeepEqual(src *MockReq) bool
func (*MockTestArgs) GetFirstArgument ¶
func (p *MockTestArgs) GetFirstArgument() interface{}
func (*MockTestArgs) GetReq ¶
func (p *MockTestArgs) GetReq() (v *MockReq)
func (*MockTestArgs) InitDefault ¶ added in v0.11.0
func (p *MockTestArgs) InitDefault()
func (*MockTestArgs) IsSetReq ¶
func (p *MockTestArgs) IsSetReq() bool
func (*MockTestArgs) SetReq ¶
func (p *MockTestArgs) SetReq(val *MockReq)
func (*MockTestArgs) String ¶ added in v0.4.4
func (p *MockTestArgs) String() string
type MockTestResult ¶
type MockTestResult struct {
Success *string `thrift:"success,0,optional" frugal:"0,optional,string" json:"success,omitempty"`
}
func NewMockTestResult ¶
func NewMockTestResult() *MockTestResult
func (*MockTestResult) BLength ¶ added in v0.11.0
func (p *MockTestResult) BLength() int
func (*MockTestResult) DeepEqual ¶ added in v0.4.4
func (p *MockTestResult) DeepEqual(ano *MockTestResult) bool
func (*MockTestResult) FastRead ¶ added in v0.11.0
func (p *MockTestResult) FastRead(buf []byte) (int, error)
func (*MockTestResult) FastReadField0 ¶ added in v0.11.0
func (p *MockTestResult) FastReadField0(buf []byte) (int, error)
func (*MockTestResult) FastWrite ¶ added in v0.11.0
func (p *MockTestResult) FastWrite(buf []byte) int
for compatibility
func (*MockTestResult) FastWriteNocopy ¶ added in v0.11.0
func (p *MockTestResult) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int
func (*MockTestResult) Field0DeepEqual ¶ added in v0.4.4
func (p *MockTestResult) Field0DeepEqual(src *string) bool
func (*MockTestResult) GetResult ¶
func (p *MockTestResult) GetResult() interface{}
func (*MockTestResult) GetSuccess ¶
func (p *MockTestResult) GetSuccess() (v string)
func (*MockTestResult) InitDefault ¶ added in v0.11.0
func (p *MockTestResult) InitDefault()
func (*MockTestResult) IsSetSuccess ¶
func (p *MockTestResult) IsSetSuccess() bool
func (*MockTestResult) SetSuccess ¶
func (p *MockTestResult) SetSuccess(x interface{})
func (*MockTestResult) String ¶ added in v0.4.4
func (p *MockTestResult) String() string
Click to show internal directories.
Click to hide internal directories.