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