Documentation ¶
Index ¶
- type Greeter
- type GreeterClient
- type GreeterHelloArgs
- func (p *GreeterHelloArgs) GetU() *User
- func (p *GreeterHelloArgs) IsSetU() bool
- func (p *GreeterHelloArgs) Read(iprot thrift.TProtocol) error
- func (p *GreeterHelloArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *GreeterHelloArgs) String() string
- func (p *GreeterHelloArgs) Write(oprot thrift.TProtocol) error
- type GreeterHelloResult
- func (p *GreeterHelloResult) GetSuccess() *Respon
- func (p *GreeterHelloResult) IsSetSuccess() bool
- func (p *GreeterHelloResult) Read(iprot thrift.TProtocol) error
- func (p *GreeterHelloResult) ReadField0(iprot thrift.TProtocol) error
- func (p *GreeterHelloResult) String() string
- func (p *GreeterHelloResult) Write(oprot thrift.TProtocol) error
- type GreeterProcessor
- func (p *GreeterProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *GreeterProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *GreeterProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *GreeterProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Respon
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GreeterClient ¶
type GreeterClient struct {
// contains filtered or unexported fields
}
func NewGreeterClient ¶
func NewGreeterClient(c thrift.TClient) *GreeterClient
func NewGreeterClientFactory ¶
func NewGreeterClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *GreeterClient
func NewGreeterClientProtocol ¶
func NewGreeterClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *GreeterClient
func (*GreeterClient) Client_ ¶
func (p *GreeterClient) Client_() thrift.TClient
type GreeterHelloArgs ¶
type GreeterHelloArgs struct {
U *User `thrift:"u,1" db:"u" json:"u"`
}
Attributes:
- U
func NewGreeterHelloArgs ¶
func NewGreeterHelloArgs() *GreeterHelloArgs
func (*GreeterHelloArgs) GetU ¶
func (p *GreeterHelloArgs) GetU() *User
func (*GreeterHelloArgs) IsSetU ¶
func (p *GreeterHelloArgs) IsSetU() bool
func (*GreeterHelloArgs) ReadField1 ¶
func (p *GreeterHelloArgs) ReadField1(iprot thrift.TProtocol) error
func (*GreeterHelloArgs) String ¶
func (p *GreeterHelloArgs) String() string
type GreeterHelloResult ¶
type GreeterHelloResult struct {
Success *Respon `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewGreeterHelloResult ¶
func NewGreeterHelloResult() *GreeterHelloResult
func (*GreeterHelloResult) GetSuccess ¶
func (p *GreeterHelloResult) GetSuccess() *Respon
func (*GreeterHelloResult) IsSetSuccess ¶
func (p *GreeterHelloResult) IsSetSuccess() bool
func (*GreeterHelloResult) ReadField0 ¶
func (p *GreeterHelloResult) ReadField0(iprot thrift.TProtocol) error
func (*GreeterHelloResult) String ¶
func (p *GreeterHelloResult) String() string
type GreeterProcessor ¶
type GreeterProcessor struct {
// contains filtered or unexported fields
}
func NewGreeterProcessor ¶
func NewGreeterProcessor(handler Greeter) *GreeterProcessor
func (*GreeterProcessor) AddToProcessorMap ¶
func (p *GreeterProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*GreeterProcessor) GetProcessorFunction ¶
func (p *GreeterProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*GreeterProcessor) Process ¶
func (p *GreeterProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*GreeterProcessor) ProcessorMap ¶
func (p *GreeterProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type Respon ¶
type Respon struct {
ID int32 `thrift:"id,1,required" db:"id" json:"id"`
}
Attributes:
- ID
var GreeterHelloResult_Success_DEFAULT *Respon
Click to show internal directories.
Click to hide internal directories.