Documentation ¶
Index ¶
- Variables
- type Echo
- type EchoClient
- type EchoEchoArgs
- func (p *EchoEchoArgs) BLength() int
- func (p *EchoEchoArgs) DeepEqual(ano *EchoEchoArgs) bool
- func (p *EchoEchoArgs) FastRead(buf []byte) (int, error)
- func (p *EchoEchoArgs) FastReadField1(buf []byte) (int, error)
- func (p *EchoEchoArgs) FastWrite(buf []byte) int
- func (p *EchoEchoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *EchoEchoArgs) Field1DeepEqual(src *Request) bool
- func (p *EchoEchoArgs) GetFirstArgument() interface{}
- func (p *EchoEchoArgs) GetReq() *Request
- func (p *EchoEchoArgs) IsSetReq() bool
- func (p *EchoEchoArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *EchoEchoArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *EchoEchoArgs) SetReq(val *Request)
- func (p *EchoEchoArgs) String() string
- func (p *EchoEchoArgs) Write(oprot thrift.TProtocol) (err error)
- type EchoEchoResult
- func (p *EchoEchoResult) BLength() int
- func (p *EchoEchoResult) DeepEqual(ano *EchoEchoResult) bool
- func (p *EchoEchoResult) FastRead(buf []byte) (int, error)
- func (p *EchoEchoResult) FastReadField0(buf []byte) (int, error)
- func (p *EchoEchoResult) FastWrite(buf []byte) int
- func (p *EchoEchoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *EchoEchoResult) Field0DeepEqual(src *Response) bool
- func (p *EchoEchoResult) GetResult() interface{}
- func (p *EchoEchoResult) GetSuccess() *Response
- func (p *EchoEchoResult) IsSetSuccess() bool
- func (p *EchoEchoResult) Read(iprot thrift.TProtocol) (err error)
- func (p *EchoEchoResult) ReadField0(iprot thrift.TProtocol) error
- func (p *EchoEchoResult) SetSuccess(x interface{})
- func (p *EchoEchoResult) String() string
- func (p *EchoEchoResult) Write(oprot thrift.TProtocol) (err error)
- type EchoProcessor
- func (p *EchoProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *EchoProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *EchoProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *EchoProcessor) 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 EchoClient ¶
type EchoClient struct {
// contains filtered or unexported fields
}
func NewEchoClient ¶
func NewEchoClient(c thrift.TClient) *EchoClient
func NewEchoClientFactory ¶
func NewEchoClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *EchoClient
func NewEchoClientProtocol ¶
func NewEchoClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *EchoClient
func (*EchoClient) Client_ ¶
func (p *EchoClient) Client_() thrift.TClient
type EchoEchoArgs ¶
type EchoEchoArgs struct {
Req *Request `thrift:"req,1" json:"req"`
}
func NewEchoEchoArgs ¶
func NewEchoEchoArgs() *EchoEchoArgs
func (*EchoEchoArgs) BLength ¶
func (p *EchoEchoArgs) BLength() int
func (*EchoEchoArgs) DeepEqual ¶
func (p *EchoEchoArgs) DeepEqual(ano *EchoEchoArgs) bool
func (*EchoEchoArgs) FastReadField1 ¶
func (p *EchoEchoArgs) FastReadField1(buf []byte) (int, error)
func (*EchoEchoArgs) FastWriteNocopy ¶
func (p *EchoEchoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*EchoEchoArgs) Field1DeepEqual ¶
func (p *EchoEchoArgs) Field1DeepEqual(src *Request) bool
func (*EchoEchoArgs) GetFirstArgument ¶
func (p *EchoEchoArgs) GetFirstArgument() interface{}
func (*EchoEchoArgs) GetReq ¶
func (p *EchoEchoArgs) GetReq() *Request
func (*EchoEchoArgs) IsSetReq ¶
func (p *EchoEchoArgs) IsSetReq() bool
func (*EchoEchoArgs) ReadField1 ¶
func (p *EchoEchoArgs) ReadField1(iprot thrift.TProtocol) error
func (*EchoEchoArgs) SetReq ¶
func (p *EchoEchoArgs) SetReq(val *Request)
func (*EchoEchoArgs) String ¶
func (p *EchoEchoArgs) String() string
type EchoEchoResult ¶
type EchoEchoResult struct {
Success *Response `thrift:"success,0" json:"success,omitempty"`
}
func NewEchoEchoResult ¶
func NewEchoEchoResult() *EchoEchoResult
func (*EchoEchoResult) BLength ¶
func (p *EchoEchoResult) BLength() int
func (*EchoEchoResult) DeepEqual ¶
func (p *EchoEchoResult) DeepEqual(ano *EchoEchoResult) bool
func (*EchoEchoResult) FastReadField0 ¶
func (p *EchoEchoResult) FastReadField0(buf []byte) (int, error)
func (*EchoEchoResult) FastWrite ¶
func (p *EchoEchoResult) FastWrite(buf []byte) int
for compatibility
func (*EchoEchoResult) FastWriteNocopy ¶
func (p *EchoEchoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*EchoEchoResult) Field0DeepEqual ¶
func (p *EchoEchoResult) Field0DeepEqual(src *Response) bool
func (*EchoEchoResult) GetResult ¶
func (p *EchoEchoResult) GetResult() interface{}
func (*EchoEchoResult) GetSuccess ¶
func (p *EchoEchoResult) GetSuccess() *Response
func (*EchoEchoResult) IsSetSuccess ¶
func (p *EchoEchoResult) IsSetSuccess() bool
func (*EchoEchoResult) ReadField0 ¶
func (p *EchoEchoResult) ReadField0(iprot thrift.TProtocol) error
func (*EchoEchoResult) SetSuccess ¶
func (p *EchoEchoResult) SetSuccess(x interface{})
func (*EchoEchoResult) String ¶
func (p *EchoEchoResult) String() string
type EchoProcessor ¶
type EchoProcessor struct {
// contains filtered or unexported fields
}
func NewEchoProcessor ¶
func NewEchoProcessor(handler Echo) *EchoProcessor
func (*EchoProcessor) AddToProcessorMap ¶
func (p *EchoProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*EchoProcessor) GetProcessorFunction ¶
func (p *EchoProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*EchoProcessor) Process ¶
func (p *EchoProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*EchoProcessor) ProcessorMap ¶
func (p *EchoProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type Request ¶
type Request struct {
Message string `thrift:"message,1" json:"message"`
}
var EchoEchoArgs_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 EchoEchoResult_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.