Documentation ¶
Index ¶
- Variables
- type Request
- func (p *Request) Equals(other *Request) bool
- func (p *Request) GetField1() int8
- func (p *Request) GetField2() int16
- func (p *Request) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Request) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Request) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Request) String() string
- func (p *Request) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Response
- func (p *Response) Equals(other *Response) bool
- func (p *Response) GetField1() int8
- func (p *Response) GetField2() int16
- func (p *Response) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Response) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Response) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Response) String() string
- func (p *Response) Write(ctx context.Context, oprot thrift.TProtocol) error
- type TestService
- type TestServiceClient
- type TestServiceProcessor
- func (p *TestServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *TestServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *TestServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *TestServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type TestServiceSendArgs
- func (p *TestServiceSendArgs) GetB() int8
- func (p *TestServiceSendArgs) GetRes() *Request
- func (p *TestServiceSendArgs) IsSetRes() bool
- func (p *TestServiceSendArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TestServiceSendArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TestServiceSendArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TestServiceSendArgs) String() string
- func (p *TestServiceSendArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type TestServiceSendResult
- func (p *TestServiceSendResult) GetSuccess() *Response
- func (p *TestServiceSendResult) IsSetSuccess() bool
- func (p *TestServiceSendResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TestServiceSendResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TestServiceSendResult) String() string
- func (p *TestServiceSendResult) Write(ctx context.Context, oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Field1 int8 `thrift:"field1,1" db:"field1" json:"field1"` Field2 int16 `thrift:"field2,2" db:"field2" json:"field2"` }
Attributes:
- Field1
- Field2
var TestServiceSendArgs_Res_DEFAULT *Request
func NewRequest ¶
func NewRequest() *Request
func (*Request) ReadField1 ¶
func (*Request) ReadField2 ¶
type Response ¶
type Response struct { Field1 int8 `thrift:"field1,1" db:"field1" json:"field1"` Field2 int16 `thrift:"field2,2" db:"field2" json:"field2"` }
Attributes:
- Field1
- Field2
var TestServiceSendResult_Success_DEFAULT *Response
func NewResponse ¶
func NewResponse() *Response
func (*Response) ReadField1 ¶
func (*Response) ReadField2 ¶
type TestService ¶
type TestServiceClient ¶
type TestServiceClient struct {
// contains filtered or unexported fields
}
func NewTestServiceClient ¶
func NewTestServiceClient(c thrift.TClient) *TestServiceClient
func NewTestServiceClientFactory ¶
func NewTestServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TestServiceClient
func NewTestServiceClientProtocol ¶
func NewTestServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TestServiceClient
func (*TestServiceClient) Client_ ¶
func (p *TestServiceClient) Client_() thrift.TClient
func (*TestServiceClient) LastResponseMeta_ ¶
func (p *TestServiceClient) LastResponseMeta_() thrift.ResponseMeta
func (*TestServiceClient) Send ¶
func (p *TestServiceClient) Send(ctx context.Context, res *Request, b int8) (_r *Response, _err error)
Parameters:
- Res
- B
func (*TestServiceClient) SetLastResponseMeta_ ¶
func (p *TestServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
type TestServiceProcessor ¶
type TestServiceProcessor struct {
// contains filtered or unexported fields
}
func NewTestServiceProcessor ¶
func NewTestServiceProcessor(handler TestService) *TestServiceProcessor
func (*TestServiceProcessor) AddToProcessorMap ¶
func (p *TestServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*TestServiceProcessor) GetProcessorFunction ¶
func (p *TestServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*TestServiceProcessor) Process ¶
func (p *TestServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*TestServiceProcessor) ProcessorMap ¶
func (p *TestServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type TestServiceSendArgs ¶
type TestServiceSendArgs struct { Res *Request `thrift:"res,1" db:"res" json:"res"` B int8 `thrift:"b,2" db:"b" json:"b"` }
Attributes:
- Res
- B
func NewTestServiceSendArgs ¶
func NewTestServiceSendArgs() *TestServiceSendArgs
func (*TestServiceSendArgs) GetB ¶
func (p *TestServiceSendArgs) GetB() int8
func (*TestServiceSendArgs) GetRes ¶
func (p *TestServiceSendArgs) GetRes() *Request
func (*TestServiceSendArgs) IsSetRes ¶
func (p *TestServiceSendArgs) IsSetRes() bool
func (*TestServiceSendArgs) ReadField1 ¶
func (*TestServiceSendArgs) ReadField2 ¶
func (*TestServiceSendArgs) String ¶
func (p *TestServiceSendArgs) String() string
type TestServiceSendResult ¶
type TestServiceSendResult struct {
Success *Response `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTestServiceSendResult ¶
func NewTestServiceSendResult() *TestServiceSendResult
func (*TestServiceSendResult) GetSuccess ¶
func (p *TestServiceSendResult) GetSuccess() *Response
func (*TestServiceSendResult) IsSetSuccess ¶
func (p *TestServiceSendResult) IsSetSuccess() bool
func (*TestServiceSendResult) ReadField0 ¶
func (*TestServiceSendResult) String ¶
func (p *TestServiceSendResult) String() string
Click to show internal directories.
Click to hide internal directories.