Documentation ¶
Index ¶
- Variables
- type EchoRequest
- func (p *EchoRequest) BLength() int
- func (p *EchoRequest) DeepEqual(ano *EchoRequest) bool
- func (p *EchoRequest) FastRead(buf []byte) (int, error)
- func (p *EchoRequest) FastReadField1(buf []byte) (int, error)
- func (p *EchoRequest) FastWrite(buf []byte) int
- func (p *EchoRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *EchoRequest) Field1DeepEqual(src string) bool
- func (p *EchoRequest) GetMessage() (v string)
- func (p *EchoRequest) InitDefault()
- func (p *EchoRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *EchoRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *EchoRequest) SetMessage(val string)
- func (p *EchoRequest) String() string
- func (p *EchoRequest) Write(oprot thrift.TProtocol) (err error)
- type EchoResponse
- func (p *EchoResponse) BLength() int
- func (p *EchoResponse) DeepEqual(ano *EchoResponse) bool
- func (p *EchoResponse) FastRead(buf []byte) (int, error)
- func (p *EchoResponse) FastReadField1(buf []byte) (int, error)
- func (p *EchoResponse) FastWrite(buf []byte) int
- func (p *EchoResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *EchoResponse) Field1DeepEqual(src string) bool
- func (p *EchoResponse) GetMessage() (v string)
- func (p *EchoResponse) InitDefault()
- func (p *EchoResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *EchoResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *EchoResponse) SetMessage(val string)
- func (p *EchoResponse) String() string
- func (p *EchoResponse) Write(oprot thrift.TProtocol) (err error)
- type EchoService
- type EchoServiceClient
- type EchoServiceEchoArgs
- func (p *EchoServiceEchoArgs) BLength() int
- func (p *EchoServiceEchoArgs) DeepEqual(ano *EchoServiceEchoArgs) bool
- func (p *EchoServiceEchoArgs) FastRead(buf []byte) (int, error)
- func (p *EchoServiceEchoArgs) FastReadField1(buf []byte) (int, error)
- func (p *EchoServiceEchoArgs) FastWrite(buf []byte) int
- func (p *EchoServiceEchoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *EchoServiceEchoArgs) Field1DeepEqual(src *EchoRequest) bool
- func (p *EchoServiceEchoArgs) GetFirstArgument() interface{}
- func (p *EchoServiceEchoArgs) GetReq() (v *EchoRequest)
- func (p *EchoServiceEchoArgs) InitDefault()
- func (p *EchoServiceEchoArgs) IsSetReq() bool
- func (p *EchoServiceEchoArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *EchoServiceEchoArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *EchoServiceEchoArgs) SetReq(val *EchoRequest)
- func (p *EchoServiceEchoArgs) String() string
- func (p *EchoServiceEchoArgs) Write(oprot thrift.TProtocol) (err error)
- type EchoServiceEchoResult
- func (p *EchoServiceEchoResult) BLength() int
- func (p *EchoServiceEchoResult) DeepEqual(ano *EchoServiceEchoResult) bool
- func (p *EchoServiceEchoResult) FastRead(buf []byte) (int, error)
- func (p *EchoServiceEchoResult) FastReadField0(buf []byte) (int, error)
- func (p *EchoServiceEchoResult) FastWrite(buf []byte) int
- func (p *EchoServiceEchoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *EchoServiceEchoResult) Field0DeepEqual(src *EchoResponse) bool
- func (p *EchoServiceEchoResult) GetResult() interface{}
- func (p *EchoServiceEchoResult) GetSuccess() (v *EchoResponse)
- func (p *EchoServiceEchoResult) InitDefault()
- func (p *EchoServiceEchoResult) IsSetSuccess() bool
- func (p *EchoServiceEchoResult) Read(iprot thrift.TProtocol) (err error)
- func (p *EchoServiceEchoResult) ReadField0(iprot thrift.TProtocol) error
- func (p *EchoServiceEchoResult) SetSuccess(x interface{})
- func (p *EchoServiceEchoResult) String() string
- func (p *EchoServiceEchoResult) Write(oprot thrift.TProtocol) (err error)
- type EchoServiceProcessor
- func (p *EchoServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *EchoServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *EchoServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *EchoServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
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 EchoRequest ¶
type EchoRequest struct {
Message string `thrift:"message,1,required" frugal:"1,required,string" json:"message"`
}
var EchoServiceEchoArgs_Req_DEFAULT *EchoRequest
func NewEchoRequest ¶
func NewEchoRequest() *EchoRequest
func (*EchoRequest) BLength ¶
func (p *EchoRequest) BLength() int
func (*EchoRequest) DeepEqual ¶
func (p *EchoRequest) DeepEqual(ano *EchoRequest) bool
func (*EchoRequest) FastReadField1 ¶
func (p *EchoRequest) FastReadField1(buf []byte) (int, error)
func (*EchoRequest) FastWriteNocopy ¶
func (p *EchoRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*EchoRequest) Field1DeepEqual ¶
func (p *EchoRequest) Field1DeepEqual(src string) bool
func (*EchoRequest) GetMessage ¶
func (p *EchoRequest) GetMessage() (v string)
func (*EchoRequest) InitDefault ¶
func (p *EchoRequest) InitDefault()
func (*EchoRequest) ReadField1 ¶
func (p *EchoRequest) ReadField1(iprot thrift.TProtocol) error
func (*EchoRequest) SetMessage ¶
func (p *EchoRequest) SetMessage(val string)
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 EchoServiceEchoResult_Success_DEFAULT *EchoResponse
func NewEchoResponse ¶
func NewEchoResponse() *EchoResponse
func (*EchoResponse) BLength ¶
func (p *EchoResponse) BLength() int
func (*EchoResponse) DeepEqual ¶
func (p *EchoResponse) DeepEqual(ano *EchoResponse) bool
func (*EchoResponse) FastReadField1 ¶
func (p *EchoResponse) FastReadField1(buf []byte) (int, error)
func (*EchoResponse) FastWriteNocopy ¶
func (p *EchoResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*EchoResponse) Field1DeepEqual ¶
func (p *EchoResponse) Field1DeepEqual(src string) bool
func (*EchoResponse) GetMessage ¶
func (p *EchoResponse) GetMessage() (v string)
func (*EchoResponse) InitDefault ¶
func (p *EchoResponse) InitDefault()
func (*EchoResponse) ReadField1 ¶
func (p *EchoResponse) ReadField1(iprot thrift.TProtocol) error
func (*EchoResponse) SetMessage ¶
func (p *EchoResponse) SetMessage(val string)
func (*EchoResponse) String ¶
func (p *EchoResponse) String() string
type EchoService ¶
type EchoService interface {
Echo(ctx context.Context, req *EchoRequest) (r *EchoResponse, err error)
}
type EchoServiceClient ¶
type EchoServiceClient struct {
// contains filtered or unexported fields
}
func NewEchoServiceClient ¶
func NewEchoServiceClient(c thrift.TClient) *EchoServiceClient
func NewEchoServiceClientFactory ¶
func NewEchoServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *EchoServiceClient
func NewEchoServiceClientProtocol ¶
func NewEchoServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *EchoServiceClient
func (*EchoServiceClient) Client_ ¶
func (p *EchoServiceClient) Client_() thrift.TClient
func (*EchoServiceClient) Echo ¶
func (p *EchoServiceClient) Echo(ctx context.Context, req *EchoRequest) (r *EchoResponse, err error)
type EchoServiceEchoArgs ¶
type EchoServiceEchoArgs struct {
Req *EchoRequest `thrift:"req,1" frugal:"1,default,EchoRequest" json:"req"`
}
func NewEchoServiceEchoArgs ¶
func NewEchoServiceEchoArgs() *EchoServiceEchoArgs
func (*EchoServiceEchoArgs) BLength ¶
func (p *EchoServiceEchoArgs) BLength() int
func (*EchoServiceEchoArgs) DeepEqual ¶
func (p *EchoServiceEchoArgs) DeepEqual(ano *EchoServiceEchoArgs) bool
func (*EchoServiceEchoArgs) FastRead ¶
func (p *EchoServiceEchoArgs) FastRead(buf []byte) (int, error)
func (*EchoServiceEchoArgs) FastReadField1 ¶
func (p *EchoServiceEchoArgs) FastReadField1(buf []byte) (int, error)
func (*EchoServiceEchoArgs) FastWrite ¶
func (p *EchoServiceEchoArgs) FastWrite(buf []byte) int
for compatibility
func (*EchoServiceEchoArgs) FastWriteNocopy ¶
func (p *EchoServiceEchoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*EchoServiceEchoArgs) Field1DeepEqual ¶
func (p *EchoServiceEchoArgs) Field1DeepEqual(src *EchoRequest) bool
func (*EchoServiceEchoArgs) GetFirstArgument ¶
func (p *EchoServiceEchoArgs) GetFirstArgument() interface{}
func (*EchoServiceEchoArgs) GetReq ¶
func (p *EchoServiceEchoArgs) GetReq() (v *EchoRequest)
func (*EchoServiceEchoArgs) InitDefault ¶
func (p *EchoServiceEchoArgs) InitDefault()
func (*EchoServiceEchoArgs) IsSetReq ¶
func (p *EchoServiceEchoArgs) IsSetReq() bool
func (*EchoServiceEchoArgs) Read ¶
func (p *EchoServiceEchoArgs) Read(iprot thrift.TProtocol) (err error)
func (*EchoServiceEchoArgs) ReadField1 ¶
func (p *EchoServiceEchoArgs) ReadField1(iprot thrift.TProtocol) error
func (*EchoServiceEchoArgs) SetReq ¶
func (p *EchoServiceEchoArgs) SetReq(val *EchoRequest)
func (*EchoServiceEchoArgs) String ¶
func (p *EchoServiceEchoArgs) String() string
type EchoServiceEchoResult ¶
type EchoServiceEchoResult struct {
Success *EchoResponse `thrift:"success,0,optional" frugal:"0,optional,EchoResponse" json:"success,omitempty"`
}
func NewEchoServiceEchoResult ¶
func NewEchoServiceEchoResult() *EchoServiceEchoResult
func (*EchoServiceEchoResult) BLength ¶
func (p *EchoServiceEchoResult) BLength() int
func (*EchoServiceEchoResult) DeepEqual ¶
func (p *EchoServiceEchoResult) DeepEqual(ano *EchoServiceEchoResult) bool
func (*EchoServiceEchoResult) FastRead ¶
func (p *EchoServiceEchoResult) FastRead(buf []byte) (int, error)
func (*EchoServiceEchoResult) FastReadField0 ¶
func (p *EchoServiceEchoResult) FastReadField0(buf []byte) (int, error)
func (*EchoServiceEchoResult) FastWrite ¶
func (p *EchoServiceEchoResult) FastWrite(buf []byte) int
for compatibility
func (*EchoServiceEchoResult) FastWriteNocopy ¶
func (p *EchoServiceEchoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*EchoServiceEchoResult) Field0DeepEqual ¶
func (p *EchoServiceEchoResult) Field0DeepEqual(src *EchoResponse) bool
func (*EchoServiceEchoResult) GetResult ¶
func (p *EchoServiceEchoResult) GetResult() interface{}
func (*EchoServiceEchoResult) GetSuccess ¶
func (p *EchoServiceEchoResult) GetSuccess() (v *EchoResponse)
func (*EchoServiceEchoResult) InitDefault ¶
func (p *EchoServiceEchoResult) InitDefault()
func (*EchoServiceEchoResult) IsSetSuccess ¶
func (p *EchoServiceEchoResult) IsSetSuccess() bool
func (*EchoServiceEchoResult) Read ¶
func (p *EchoServiceEchoResult) Read(iprot thrift.TProtocol) (err error)
func (*EchoServiceEchoResult) ReadField0 ¶
func (p *EchoServiceEchoResult) ReadField0(iprot thrift.TProtocol) error
func (*EchoServiceEchoResult) SetSuccess ¶
func (p *EchoServiceEchoResult) SetSuccess(x interface{})
func (*EchoServiceEchoResult) String ¶
func (p *EchoServiceEchoResult) String() string
type EchoServiceProcessor ¶
type EchoServiceProcessor struct {
// contains filtered or unexported fields
}
func NewEchoServiceProcessor ¶
func NewEchoServiceProcessor(handler EchoService) *EchoServiceProcessor
func (*EchoServiceProcessor) AddToProcessorMap ¶
func (p *EchoServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*EchoServiceProcessor) GetProcessorFunction ¶
func (p *EchoServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*EchoServiceProcessor) Process ¶
func (p *EchoServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*EchoServiceProcessor) ProcessorMap ¶
func (p *EchoServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.