Documentation ¶
Index ¶
- Variables
- type EchoService
- type EchoServiceClient
- func (p *EchoServiceClient) Client_() thrift.TClient
- func (p *EchoServiceClient) Echo(ctx context.Context, req *Request) (_r *Response, _err error)
- func (p *EchoServiceClient) LastResponseMeta_() thrift.ResponseMeta
- func (p *EchoServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
- func (p *EchoServiceClient) VisitOneway(ctx context.Context, req *Request) (_err error)
- type EchoServiceEchoArgs
- func (p *EchoServiceEchoArgs) GetReq() *Request
- func (p *EchoServiceEchoArgs) IsSetReq() bool
- func (p *EchoServiceEchoArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *EchoServiceEchoArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *EchoServiceEchoArgs) String() string
- func (p *EchoServiceEchoArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type EchoServiceEchoResult
- func (p *EchoServiceEchoResult) GetSuccess() *Response
- func (p *EchoServiceEchoResult) IsSetSuccess() bool
- func (p *EchoServiceEchoResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *EchoServiceEchoResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *EchoServiceEchoResult) String() string
- func (p *EchoServiceEchoResult) Write(ctx context.Context, oprot thrift.TProtocol) 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
- type EchoServiceVisitOnewayArgs
- func (p *EchoServiceVisitOnewayArgs) GetReq() *Request
- func (p *EchoServiceVisitOnewayArgs) IsSetReq() bool
- func (p *EchoServiceVisitOnewayArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *EchoServiceVisitOnewayArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *EchoServiceVisitOnewayArgs) String() string
- func (p *EchoServiceVisitOnewayArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Request
- func (p *Request) Equals(other *Request) bool
- func (p *Request) GetMsg() string
- 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) String() string
- func (p *Request) Validate() error
- func (p *Request) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Response
- func (p *Response) Equals(other *Response) bool
- func (p *Response) GetMsg() string
- 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) String() string
- func (p *Response) Validate() error
- func (p *Response) 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 EchoService ¶
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) LastResponseMeta_ ¶
func (p *EchoServiceClient) LastResponseMeta_() thrift.ResponseMeta
func (*EchoServiceClient) SetLastResponseMeta_ ¶
func (p *EchoServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
func (*EchoServiceClient) VisitOneway ¶
func (p *EchoServiceClient) VisitOneway(ctx context.Context, req *Request) (_err error)
Parameters:
- Req
type EchoServiceEchoArgs ¶
type EchoServiceEchoArgs struct {
Req *Request `thrift:"req,1" db:"req" json:"req"`
}
Attributes:
- Req
func NewEchoServiceEchoArgs ¶
func NewEchoServiceEchoArgs() *EchoServiceEchoArgs
func (*EchoServiceEchoArgs) GetReq ¶
func (p *EchoServiceEchoArgs) GetReq() *Request
func (*EchoServiceEchoArgs) IsSetReq ¶
func (p *EchoServiceEchoArgs) IsSetReq() bool
func (*EchoServiceEchoArgs) ReadField1 ¶
func (*EchoServiceEchoArgs) String ¶
func (p *EchoServiceEchoArgs) String() string
type EchoServiceEchoResult ¶
type EchoServiceEchoResult struct {
Success *Response `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewEchoServiceEchoResult ¶
func NewEchoServiceEchoResult() *EchoServiceEchoResult
func (*EchoServiceEchoResult) GetSuccess ¶
func (p *EchoServiceEchoResult) GetSuccess() *Response
func (*EchoServiceEchoResult) IsSetSuccess ¶
func (p *EchoServiceEchoResult) IsSetSuccess() bool
func (*EchoServiceEchoResult) ReadField0 ¶
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
type EchoServiceVisitOnewayArgs ¶
type EchoServiceVisitOnewayArgs struct {
Req *Request `thrift:"req,1" db:"req" json:"req"`
}
Attributes:
- Req
func NewEchoServiceVisitOnewayArgs ¶
func NewEchoServiceVisitOnewayArgs() *EchoServiceVisitOnewayArgs
func (*EchoServiceVisitOnewayArgs) GetReq ¶
func (p *EchoServiceVisitOnewayArgs) GetReq() *Request
func (*EchoServiceVisitOnewayArgs) IsSetReq ¶
func (p *EchoServiceVisitOnewayArgs) IsSetReq() bool
func (*EchoServiceVisitOnewayArgs) ReadField1 ¶
func (*EchoServiceVisitOnewayArgs) String ¶
func (p *EchoServiceVisitOnewayArgs) String() string
type Request ¶
type Request struct {
Msg string `thrift:"Msg,1" db:"Msg" json:"Msg"`
}
Attributes:
- Msg
var EchoServiceEchoArgs_Req_DEFAULT *Request
var EchoServiceVisitOnewayArgs_Req_DEFAULT *Request
func NewRequest ¶
func NewRequest() *Request
func (*Request) ReadField1 ¶
type Response ¶
type Response struct {
Msg string `thrift:"Msg,1" db:"Msg" json:"Msg"`
}
Attributes:
- Msg
var EchoServiceEchoResult_Success_DEFAULT *Response
func NewResponse ¶
func NewResponse() *Response
func (*Response) ReadField1 ¶
Click to show internal directories.
Click to hide internal directories.