Documentation ¶
Index ¶
- Variables
- type HelloThrift
- type HelloThriftClient
- type HelloThriftEchoArgs
- func (p *HelloThriftEchoArgs) BLength() int
- func (p *HelloThriftEchoArgs) DeepEqual(ano *HelloThriftEchoArgs) bool
- func (p *HelloThriftEchoArgs) FastRead(buf []byte) (int, error)
- func (p *HelloThriftEchoArgs) FastReadField1(buf []byte) (int, error)
- func (p *HelloThriftEchoArgs) FastWrite(buf []byte) int
- func (p *HelloThriftEchoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *HelloThriftEchoArgs) Field1DeepEqual(src *Request) bool
- func (p *HelloThriftEchoArgs) GetFirstArgument() interface{}
- func (p *HelloThriftEchoArgs) GetReq() *Request
- func (p *HelloThriftEchoArgs) IsSetReq() bool
- func (p *HelloThriftEchoArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *HelloThriftEchoArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *HelloThriftEchoArgs) SetReq(val *Request)
- func (p *HelloThriftEchoArgs) String() string
- func (p *HelloThriftEchoArgs) Write(oprot thrift.TProtocol) (err error)
- type HelloThriftEchoResult
- func (p *HelloThriftEchoResult) BLength() int
- func (p *HelloThriftEchoResult) DeepEqual(ano *HelloThriftEchoResult) bool
- func (p *HelloThriftEchoResult) FastRead(buf []byte) (int, error)
- func (p *HelloThriftEchoResult) FastReadField0(buf []byte) (int, error)
- func (p *HelloThriftEchoResult) FastWrite(buf []byte) int
- func (p *HelloThriftEchoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *HelloThriftEchoResult) Field0DeepEqual(src *Response) bool
- func (p *HelloThriftEchoResult) GetResult() interface{}
- func (p *HelloThriftEchoResult) GetSuccess() *Response
- func (p *HelloThriftEchoResult) IsSetSuccess() bool
- func (p *HelloThriftEchoResult) Read(iprot thrift.TProtocol) (err error)
- func (p *HelloThriftEchoResult) ReadField0(iprot thrift.TProtocol) error
- func (p *HelloThriftEchoResult) SetSuccess(x interface{})
- func (p *HelloThriftEchoResult) String() string
- func (p *HelloThriftEchoResult) Write(oprot thrift.TProtocol) (err error)
- type HelloThriftProcessor
- func (p *HelloThriftProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *HelloThriftProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *HelloThriftProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *HelloThriftProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Request
- func (p *Request) BLength() int
- func (p *Request) DeepEqual(ano *Request) bool
- func (p *Request) FastRead(buf []byte) (int, error)
- func (p *Request) FastReadField1(buf []byte) (int, error)
- func (p *Request) FastWrite(buf []byte) int
- func (p *Request) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Request) Field1DeepEqual(src string) bool
- func (p *Request) GetMessage() string
- func (p *Request) Read(iprot thrift.TProtocol) (err error)
- func (p *Request) ReadField1(iprot thrift.TProtocol) error
- func (p *Request) SetMessage(val string)
- func (p *Request) String() string
- func (p *Request) Write(oprot thrift.TProtocol) (err error)
- type Response
- func (p *Response) BLength() int
- func (p *Response) DeepEqual(ano *Response) bool
- func (p *Response) FastRead(buf []byte) (int, error)
- func (p *Response) FastReadField1(buf []byte) (int, error)
- func (p *Response) FastWrite(buf []byte) int
- func (p *Response) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Response) Field1DeepEqual(src string) bool
- func (p *Response) GetMessage() string
- func (p *Response) Read(iprot thrift.TProtocol) (err error)
- func (p *Response) ReadField1(iprot thrift.TProtocol) error
- func (p *Response) SetMessage(val string)
- func (p *Response) String() string
- func (p *Response) Write(oprot thrift.TProtocol) (err error)
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 HelloThrift ¶
type HelloThriftClient ¶
type HelloThriftClient struct {
// contains filtered or unexported fields
}
func NewHelloThriftClient ¶
func NewHelloThriftClient(c thrift.TClient) *HelloThriftClient
func NewHelloThriftClientFactory ¶
func NewHelloThriftClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *HelloThriftClient
func NewHelloThriftClientProtocol ¶
func NewHelloThriftClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *HelloThriftClient
func (*HelloThriftClient) Client_ ¶
func (p *HelloThriftClient) Client_() thrift.TClient
type HelloThriftEchoArgs ¶
type HelloThriftEchoArgs struct {
Req *Request `thrift:"req,1" json:"req"`
}
func NewHelloThriftEchoArgs ¶
func NewHelloThriftEchoArgs() *HelloThriftEchoArgs
func (*HelloThriftEchoArgs) BLength ¶
func (p *HelloThriftEchoArgs) BLength() int
func (*HelloThriftEchoArgs) DeepEqual ¶
func (p *HelloThriftEchoArgs) DeepEqual(ano *HelloThriftEchoArgs) bool
func (*HelloThriftEchoArgs) FastRead ¶
func (p *HelloThriftEchoArgs) FastRead(buf []byte) (int, error)
func (*HelloThriftEchoArgs) FastReadField1 ¶
func (p *HelloThriftEchoArgs) FastReadField1(buf []byte) (int, error)
func (*HelloThriftEchoArgs) FastWrite ¶
func (p *HelloThriftEchoArgs) FastWrite(buf []byte) int
for compatibility
func (*HelloThriftEchoArgs) FastWriteNocopy ¶
func (p *HelloThriftEchoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*HelloThriftEchoArgs) Field1DeepEqual ¶
func (p *HelloThriftEchoArgs) Field1DeepEqual(src *Request) bool
func (*HelloThriftEchoArgs) GetFirstArgument ¶
func (p *HelloThriftEchoArgs) GetFirstArgument() interface{}
func (*HelloThriftEchoArgs) GetReq ¶
func (p *HelloThriftEchoArgs) GetReq() *Request
func (*HelloThriftEchoArgs) IsSetReq ¶
func (p *HelloThriftEchoArgs) IsSetReq() bool
func (*HelloThriftEchoArgs) Read ¶
func (p *HelloThriftEchoArgs) Read(iprot thrift.TProtocol) (err error)
func (*HelloThriftEchoArgs) ReadField1 ¶
func (p *HelloThriftEchoArgs) ReadField1(iprot thrift.TProtocol) error
func (*HelloThriftEchoArgs) SetReq ¶
func (p *HelloThriftEchoArgs) SetReq(val *Request)
func (*HelloThriftEchoArgs) String ¶
func (p *HelloThriftEchoArgs) String() string
type HelloThriftEchoResult ¶
type HelloThriftEchoResult struct {
Success *Response `thrift:"success,0" json:"success,omitempty"`
}
func NewHelloThriftEchoResult ¶
func NewHelloThriftEchoResult() *HelloThriftEchoResult
func (*HelloThriftEchoResult) BLength ¶
func (p *HelloThriftEchoResult) BLength() int
func (*HelloThriftEchoResult) DeepEqual ¶
func (p *HelloThriftEchoResult) DeepEqual(ano *HelloThriftEchoResult) bool
func (*HelloThriftEchoResult) FastRead ¶
func (p *HelloThriftEchoResult) FastRead(buf []byte) (int, error)
func (*HelloThriftEchoResult) FastReadField0 ¶
func (p *HelloThriftEchoResult) FastReadField0(buf []byte) (int, error)
func (*HelloThriftEchoResult) FastWrite ¶
func (p *HelloThriftEchoResult) FastWrite(buf []byte) int
for compatibility
func (*HelloThriftEchoResult) FastWriteNocopy ¶
func (p *HelloThriftEchoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*HelloThriftEchoResult) Field0DeepEqual ¶
func (p *HelloThriftEchoResult) Field0DeepEqual(src *Response) bool
func (*HelloThriftEchoResult) GetResult ¶
func (p *HelloThriftEchoResult) GetResult() interface{}
func (*HelloThriftEchoResult) GetSuccess ¶
func (p *HelloThriftEchoResult) GetSuccess() *Response
func (*HelloThriftEchoResult) IsSetSuccess ¶
func (p *HelloThriftEchoResult) IsSetSuccess() bool
func (*HelloThriftEchoResult) Read ¶
func (p *HelloThriftEchoResult) Read(iprot thrift.TProtocol) (err error)
func (*HelloThriftEchoResult) ReadField0 ¶
func (p *HelloThriftEchoResult) ReadField0(iprot thrift.TProtocol) error
func (*HelloThriftEchoResult) SetSuccess ¶
func (p *HelloThriftEchoResult) SetSuccess(x interface{})
func (*HelloThriftEchoResult) String ¶
func (p *HelloThriftEchoResult) String() string
type HelloThriftProcessor ¶
type HelloThriftProcessor struct {
// contains filtered or unexported fields
}
func NewHelloThriftProcessor ¶
func NewHelloThriftProcessor(handler HelloThrift) *HelloThriftProcessor
func (*HelloThriftProcessor) AddToProcessorMap ¶
func (p *HelloThriftProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*HelloThriftProcessor) GetProcessorFunction ¶
func (p *HelloThriftProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*HelloThriftProcessor) Process ¶
func (p *HelloThriftProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*HelloThriftProcessor) ProcessorMap ¶
func (p *HelloThriftProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type Request ¶
type Request struct {
Message string `thrift:"message,1" json:"message"`
}
var HelloThriftEchoArgs_Req_DEFAULT *Request
func NewRequest ¶
func NewRequest() *Request
func (*Request) FastWriteNocopy ¶
func (p *Request) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Request) Field1DeepEqual ¶
func (*Request) GetMessage ¶
func (*Request) SetMessage ¶
type Response ¶
type Response struct {
Message string `thrift:"message,1" json:"message"`
}
var HelloThriftEchoResult_Success_DEFAULT *Response
func NewResponse ¶
func NewResponse() *Response
func (*Response) FastWriteNocopy ¶
func (p *Response) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Response) Field1DeepEqual ¶
func (*Response) GetMessage ¶
func (*Response) SetMessage ¶
Click to show internal directories.
Click to hide internal directories.