Documentation ¶
Index ¶
- Variables
- type MyException
- type MyRequest
- type MyResponse
- type MyService
- type MyServiceClient
- type MyServiceGetResponseArgs
- func (p *MyServiceGetResponseArgs) GetID() UUID
- func (p *MyServiceGetResponseArgs) GetReq() *MyRequest
- func (p *MyServiceGetResponseArgs) IsSetReq() bool
- func (p *MyServiceGetResponseArgs) Read(iprot thrift.TProtocol) error
- func (p *MyServiceGetResponseArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *MyServiceGetResponseArgs) ReadField2(iprot thrift.TProtocol) error
- func (p *MyServiceGetResponseArgs) String() string
- func (p *MyServiceGetResponseArgs) Write(oprot thrift.TProtocol) error
- type MyServiceGetResponseResult
- func (p *MyServiceGetResponseResult) GetMe() *MyException
- func (p *MyServiceGetResponseResult) GetSuccess() *MyResponse
- func (p *MyServiceGetResponseResult) IsSetMe() bool
- func (p *MyServiceGetResponseResult) IsSetSuccess() bool
- func (p *MyServiceGetResponseResult) Read(iprot thrift.TProtocol) error
- func (p *MyServiceGetResponseResult) ReadField0(iprot thrift.TProtocol) error
- func (p *MyServiceGetResponseResult) ReadField1(iprot thrift.TProtocol) error
- func (p *MyServiceGetResponseResult) String() string
- func (p *MyServiceGetResponseResult) Write(oprot thrift.TProtocol) error
- type MyServicePingArgs
- type MyServicePingResult
- type MyServiceProcessor
- func (p *MyServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *MyServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *MyServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *MyServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type UUID
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
type MyException ¶
type MyException struct { }
var MyServiceGetResponseResult_Me_DEFAULT *MyException
func NewMyException ¶
func NewMyException() *MyException
func (*MyException) Error ¶
func (p *MyException) Error() string
func (*MyException) String ¶
func (p *MyException) String() string
type MyRequest ¶
type MyRequest struct {
Req string `thrift:"req,1,required" db:"req" json:"req"`
}
Attributes:
- Req
var MyServiceGetResponseArgs_Req_DEFAULT *MyRequest
func NewMyRequest ¶
func NewMyRequest() *MyRequest
type MyResponse ¶
type MyResponse struct {
Res string `thrift:"res,1,required" db:"res" json:"res"`
}
Attributes:
- Res
var MyServiceGetResponseResult_Success_DEFAULT *MyResponse
func NewMyResponse ¶
func NewMyResponse() *MyResponse
func (*MyResponse) GetRes ¶
func (p *MyResponse) GetRes() string
func (*MyResponse) ReadField1 ¶
func (p *MyResponse) ReadField1(iprot thrift.TProtocol) error
func (*MyResponse) String ¶
func (p *MyResponse) String() string
type MyServiceClient ¶
type MyServiceClient struct {
// contains filtered or unexported fields
}
func NewMyServiceClient ¶
func NewMyServiceClient(c thrift.TClient) *MyServiceClient
func NewMyServiceClientFactory ¶
func NewMyServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *MyServiceClient
func NewMyServiceClientProtocol ¶
func NewMyServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MyServiceClient
func (*MyServiceClient) Client_ ¶
func (p *MyServiceClient) Client_() thrift.TClient
func (*MyServiceClient) GetResponse ¶
func (p *MyServiceClient) GetResponse(ctx context.Context, id UUID, req *MyRequest) (r *MyResponse, err error)
Parameters:
- ID
- Req
type MyServiceGetResponseArgs ¶
type MyServiceGetResponseArgs struct { ID UUID `thrift:"id,1" db:"id" json:"id"` Req *MyRequest `thrift:"req,2" db:"req" json:"req"` }
Attributes:
- ID
- Req
func NewMyServiceGetResponseArgs ¶
func NewMyServiceGetResponseArgs() *MyServiceGetResponseArgs
func (*MyServiceGetResponseArgs) GetID ¶
func (p *MyServiceGetResponseArgs) GetID() UUID
func (*MyServiceGetResponseArgs) GetReq ¶
func (p *MyServiceGetResponseArgs) GetReq() *MyRequest
func (*MyServiceGetResponseArgs) IsSetReq ¶
func (p *MyServiceGetResponseArgs) IsSetReq() bool
func (*MyServiceGetResponseArgs) Read ¶
func (p *MyServiceGetResponseArgs) Read(iprot thrift.TProtocol) error
func (*MyServiceGetResponseArgs) ReadField1 ¶
func (p *MyServiceGetResponseArgs) ReadField1(iprot thrift.TProtocol) error
func (*MyServiceGetResponseArgs) ReadField2 ¶
func (p *MyServiceGetResponseArgs) ReadField2(iprot thrift.TProtocol) error
func (*MyServiceGetResponseArgs) String ¶
func (p *MyServiceGetResponseArgs) String() string
type MyServiceGetResponseResult ¶
type MyServiceGetResponseResult struct { Success *MyResponse `thrift:"success,0" db:"success" json:"success,omitempty"` Me *MyException `thrift:"me,1" db:"me" json:"me,omitempty"` }
Attributes:
- Success
- Me
func NewMyServiceGetResponseResult ¶
func NewMyServiceGetResponseResult() *MyServiceGetResponseResult
func (*MyServiceGetResponseResult) GetMe ¶
func (p *MyServiceGetResponseResult) GetMe() *MyException
func (*MyServiceGetResponseResult) GetSuccess ¶
func (p *MyServiceGetResponseResult) GetSuccess() *MyResponse
func (*MyServiceGetResponseResult) IsSetMe ¶
func (p *MyServiceGetResponseResult) IsSetMe() bool
func (*MyServiceGetResponseResult) IsSetSuccess ¶
func (p *MyServiceGetResponseResult) IsSetSuccess() bool
func (*MyServiceGetResponseResult) Read ¶
func (p *MyServiceGetResponseResult) Read(iprot thrift.TProtocol) error
func (*MyServiceGetResponseResult) ReadField0 ¶
func (p *MyServiceGetResponseResult) ReadField0(iprot thrift.TProtocol) error
func (*MyServiceGetResponseResult) ReadField1 ¶
func (p *MyServiceGetResponseResult) ReadField1(iprot thrift.TProtocol) error
func (*MyServiceGetResponseResult) String ¶
func (p *MyServiceGetResponseResult) String() string
type MyServicePingArgs ¶
type MyServicePingArgs struct { }
func NewMyServicePingArgs ¶
func NewMyServicePingArgs() *MyServicePingArgs
func (*MyServicePingArgs) String ¶
func (p *MyServicePingArgs) String() string
type MyServicePingResult ¶
type MyServicePingResult struct { }
func NewMyServicePingResult ¶
func NewMyServicePingResult() *MyServicePingResult
func (*MyServicePingResult) String ¶
func (p *MyServicePingResult) String() string
type MyServiceProcessor ¶
type MyServiceProcessor struct {
// contains filtered or unexported fields
}
func NewMyServiceProcessor ¶
func NewMyServiceProcessor(handler MyService) *MyServiceProcessor
func (*MyServiceProcessor) AddToProcessorMap ¶
func (p *MyServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*MyServiceProcessor) GetProcessorFunction ¶
func (p *MyServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*MyServiceProcessor) Process ¶
func (p *MyServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*MyServiceProcessor) ProcessorMap ¶
func (p *MyServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.