Documentation ¶
Index ¶
- Variables
- type HelloService
- type HelloServiceClient
- type HelloServiceProcessor
- func (p *HelloServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *HelloServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *HelloServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *HelloServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type HelloServiceSayHelloArgs
- func (p *HelloServiceSayHelloArgs) GetRequest() *Request
- func (p *HelloServiceSayHelloArgs) IsSetRequest() bool
- func (p *HelloServiceSayHelloArgs) Read(iprot thrift.TProtocol) error
- func (p *HelloServiceSayHelloArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *HelloServiceSayHelloArgs) String() string
- func (p *HelloServiceSayHelloArgs) Write(oprot thrift.TProtocol) error
- type HelloServiceSayHelloResult
- func (p *HelloServiceSayHelloResult) GetSuccess() *Response
- func (p *HelloServiceSayHelloResult) IsSetSuccess() bool
- func (p *HelloServiceSayHelloResult) Read(iprot thrift.TProtocol) error
- func (p *HelloServiceSayHelloResult) ReadField0(iprot thrift.TProtocol) error
- func (p *HelloServiceSayHelloResult) String() string
- func (p *HelloServiceSayHelloResult) Write(oprot thrift.TProtocol) error
- type Request
- type Response
- func (p *Response) GetCode() int32
- func (p *Response) GetResponseMsg() string
- func (p *Response) Read(iprot thrift.TProtocol) error
- func (p *Response) ReadField1(iprot thrift.TProtocol) error
- func (p *Response) ReadField2(iprot thrift.TProtocol) error
- func (p *Response) String() string
- func (p *Response) Write(oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
View Source
var Request_Msg_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type HelloService ¶
type HelloServiceClient ¶
type HelloServiceClient struct {
// contains filtered or unexported fields
}
func NewHelloServiceClient ¶
func NewHelloServiceClient(c thrift.TClient) *HelloServiceClient
func NewHelloServiceClientFactory ¶
func NewHelloServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *HelloServiceClient
func NewHelloServiceClientProtocol ¶
func NewHelloServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *HelloServiceClient
func (*HelloServiceClient) Client_ ¶
func (p *HelloServiceClient) Client_() thrift.TClient
type HelloServiceProcessor ¶
type HelloServiceProcessor struct {
// contains filtered or unexported fields
}
func NewHelloServiceProcessor ¶
func NewHelloServiceProcessor(handler HelloService) *HelloServiceProcessor
func (*HelloServiceProcessor) AddToProcessorMap ¶
func (p *HelloServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*HelloServiceProcessor) GetProcessorFunction ¶
func (p *HelloServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*HelloServiceProcessor) Process ¶
func (p *HelloServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*HelloServiceProcessor) ProcessorMap ¶
func (p *HelloServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type HelloServiceSayHelloArgs ¶
type HelloServiceSayHelloArgs struct {
Request *Request `thrift:"request,1,required" db:"request" json:"request"`
}
Attributes:
- Request
func NewHelloServiceSayHelloArgs ¶
func NewHelloServiceSayHelloArgs() *HelloServiceSayHelloArgs
func (*HelloServiceSayHelloArgs) GetRequest ¶
func (p *HelloServiceSayHelloArgs) GetRequest() *Request
func (*HelloServiceSayHelloArgs) IsSetRequest ¶
func (p *HelloServiceSayHelloArgs) IsSetRequest() bool
func (*HelloServiceSayHelloArgs) Read ¶
func (p *HelloServiceSayHelloArgs) Read(iprot thrift.TProtocol) error
func (*HelloServiceSayHelloArgs) ReadField1 ¶
func (p *HelloServiceSayHelloArgs) ReadField1(iprot thrift.TProtocol) error
func (*HelloServiceSayHelloArgs) String ¶
func (p *HelloServiceSayHelloArgs) String() string
type HelloServiceSayHelloResult ¶
type HelloServiceSayHelloResult struct {
Success *Response `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewHelloServiceSayHelloResult ¶
func NewHelloServiceSayHelloResult() *HelloServiceSayHelloResult
func (*HelloServiceSayHelloResult) GetSuccess ¶
func (p *HelloServiceSayHelloResult) GetSuccess() *Response
func (*HelloServiceSayHelloResult) IsSetSuccess ¶
func (p *HelloServiceSayHelloResult) IsSetSuccess() bool
func (*HelloServiceSayHelloResult) Read ¶
func (p *HelloServiceSayHelloResult) Read(iprot thrift.TProtocol) error
func (*HelloServiceSayHelloResult) ReadField0 ¶
func (p *HelloServiceSayHelloResult) ReadField0(iprot thrift.TProtocol) error
func (*HelloServiceSayHelloResult) String ¶
func (p *HelloServiceSayHelloResult) String() string
type Request ¶
type Request struct {
Msg *string `thrift:"msg,1" db:"msg" json:"msg,omitempty"`
}
Attributes:
- Msg
var HelloServiceSayHelloArgs_Request_DEFAULT *Request
func NewRequest ¶
func NewRequest() *Request
type Response ¶
type Response struct { Code int32 `thrift:"code,1,required" db:"code" json:"code"` ResponseMsg string `thrift:"responseMsg,2,required" db:"responseMsg" json:"responseMsg"` }
Attributes:
- Code
- ResponseMsg
var HelloServiceSayHelloResult_Success_DEFAULT *Response
func NewResponse ¶
func NewResponse() *Response
func (*Response) GetResponseMsg ¶
Click to show internal directories.
Click to hide internal directories.