Documentation ¶
Index ¶
- Variables
- func GetFileDescriptorForApi3() *thrift_reflection.FileDescriptor
- func GetTestService3IDLAnnotations() map[string][]string
- type EchoRequest
- func (p *EchoRequest) Decode(d codec.Decoder) error
- func (p *EchoRequest) Encode(e codec.Encoder) error
- func (p *EchoRequest) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *EchoRequest) GetMessage() (v string)
- func (p *EchoRequest) GetObj() (v java.Object)
- func (p *EchoRequest) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
- func (p *EchoRequest) InitDefault()
- func (p *EchoRequest) IsSetObj() bool
- func (p *EchoRequest) JavaClassName() string
- func (p *EchoRequest) SetMessage(val string)
- func (p *EchoRequest) SetObj(val java.Object)
- func (p *EchoRequest) String() string
- type EchoResponse
- func (p *EchoResponse) Decode(d codec.Decoder) error
- func (p *EchoResponse) Encode(e codec.Encoder) error
- func (p *EchoResponse) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *EchoResponse) GetMessage() (v string)
- func (p *EchoResponse) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
- func (p *EchoResponse) InitDefault()
- func (p *EchoResponse) JavaClassName() string
- func (p *EchoResponse) SetMessage(val string)
- func (p *EchoResponse) String() string
- type TestService3
- type TestService3EchoArgs
- func (p *TestService3EchoArgs) Decode(d codec.Decoder) error
- func (p *TestService3EchoArgs) Encode(e codec.Encoder) error
- func (p *TestService3EchoArgs) GetFirstArgument() interface{}
- func (p *TestService3EchoArgs) GetReq() (v *EchoRequest)
- func (p *TestService3EchoArgs) InitDefault()
- func (p *TestService3EchoArgs) IsSetReq() bool
- func (p *TestService3EchoArgs) SetReq(val *EchoRequest)
- func (p *TestService3EchoArgs) String() string
- type TestService3EchoResult
- func (p *TestService3EchoResult) Decode(d codec.Decoder) error
- func (p *TestService3EchoResult) Encode(e codec.Encoder) error
- func (p *TestService3EchoResult) GetResult() interface{}
- func (p *TestService3EchoResult) GetSuccess() (v *EchoResponse)
- func (p *TestService3EchoResult) InitDefault()
- func (p *TestService3EchoResult) IsSetSuccess() bool
- func (p *TestService3EchoResult) SetSuccess(x interface{})
- func (p *TestService3EchoResult) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var EchoRequest_Obj_DEFAULT java.Object
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
Functions ¶
func GetFileDescriptorForApi3 ¶
func GetFileDescriptorForApi3() *thrift_reflection.FileDescriptor
Types ¶
type EchoRequest ¶
type EchoRequest struct { Message string `thrift:"message,1,required" frugal:"1,required,string" json:"message"` Obj java.Object `thrift:"obj,2,optional" frugal:"2,optional,java.Object" json:"obj,omitempty"` }
var TestService3EchoArgs_Req_DEFAULT *EchoRequest
func NewEchoRequest ¶
func NewEchoRequest() *EchoRequest
func (*EchoRequest) GetDescriptor ¶
func (p *EchoRequest) GetDescriptor() *thrift_reflection.StructDescriptor
func (*EchoRequest) GetMessage ¶
func (p *EchoRequest) GetMessage() (v string)
func (*EchoRequest) GetObj ¶
func (p *EchoRequest) GetObj() (v java.Object)
func (*EchoRequest) GetTypeDescriptor ¶
func (p *EchoRequest) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*EchoRequest) InitDefault ¶
func (p *EchoRequest) InitDefault()
func (*EchoRequest) IsSetObj ¶
func (p *EchoRequest) IsSetObj() bool
func (*EchoRequest) JavaClassName ¶
func (p *EchoRequest) JavaClassName() string
func (*EchoRequest) SetMessage ¶
func (p *EchoRequest) SetMessage(val string)
func (*EchoRequest) SetObj ¶
func (p *EchoRequest) SetObj(val java.Object)
func (*EchoRequest) String ¶
func (p *EchoRequest) String() string
type EchoResponse ¶
type EchoResponse struct {
Message string `thrift:"message,1,required" frugal:"1,required,string" json:"message"`
}
var TestService3EchoResult_Success_DEFAULT *EchoResponse
func NewEchoResponse ¶
func NewEchoResponse() *EchoResponse
func (*EchoResponse) GetDescriptor ¶
func (p *EchoResponse) GetDescriptor() *thrift_reflection.StructDescriptor
func (*EchoResponse) GetMessage ¶
func (p *EchoResponse) GetMessage() (v string)
func (*EchoResponse) GetTypeDescriptor ¶
func (p *EchoResponse) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*EchoResponse) InitDefault ¶
func (p *EchoResponse) InitDefault()
func (*EchoResponse) JavaClassName ¶
func (p *EchoResponse) JavaClassName() string
func (*EchoResponse) SetMessage ¶
func (p *EchoResponse) SetMessage(val string)
func (*EchoResponse) String ¶
func (p *EchoResponse) String() string
type TestService3 ¶
type TestService3 interface {
Echo(ctx context.Context, req *EchoRequest) (r *EchoResponse, err error)
}
type TestService3EchoArgs ¶
type TestService3EchoArgs struct {
Req *EchoRequest `thrift:"req,1" frugal:"1,default,EchoRequest" json:"req"`
}
func NewTestService3EchoArgs ¶
func NewTestService3EchoArgs() *TestService3EchoArgs
func (*TestService3EchoArgs) GetFirstArgument ¶
func (p *TestService3EchoArgs) GetFirstArgument() interface{}
func (*TestService3EchoArgs) GetReq ¶
func (p *TestService3EchoArgs) GetReq() (v *EchoRequest)
func (*TestService3EchoArgs) InitDefault ¶
func (p *TestService3EchoArgs) InitDefault()
func (*TestService3EchoArgs) IsSetReq ¶
func (p *TestService3EchoArgs) IsSetReq() bool
func (*TestService3EchoArgs) SetReq ¶
func (p *TestService3EchoArgs) SetReq(val *EchoRequest)
func (*TestService3EchoArgs) String ¶
func (p *TestService3EchoArgs) String() string
type TestService3EchoResult ¶
type TestService3EchoResult struct {
Success *EchoResponse `thrift:"success,0,optional" frugal:"0,optional,EchoResponse" json:"success,omitempty"`
}
func NewTestService3EchoResult ¶
func NewTestService3EchoResult() *TestService3EchoResult
func (*TestService3EchoResult) Decode ¶
func (p *TestService3EchoResult) Decode(d codec.Decoder) error
func (*TestService3EchoResult) Encode ¶
func (p *TestService3EchoResult) Encode(e codec.Encoder) error
func (*TestService3EchoResult) GetResult ¶
func (p *TestService3EchoResult) GetResult() interface{}
func (*TestService3EchoResult) GetSuccess ¶
func (p *TestService3EchoResult) GetSuccess() (v *EchoResponse)
func (*TestService3EchoResult) InitDefault ¶
func (p *TestService3EchoResult) InitDefault()
func (*TestService3EchoResult) IsSetSuccess ¶
func (p *TestService3EchoResult) IsSetSuccess() bool
func (*TestService3EchoResult) SetSuccess ¶
func (p *TestService3EchoResult) SetSuccess(x interface{})
func (*TestService3EchoResult) String ¶
func (p *TestService3EchoResult) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.