Documentation ¶
Index ¶
- Variables
- type GetStructArgs
- type GetStructResult
- func (p *GetStructResult) GetSuccess() *SharedStruct
- func (p *GetStructResult) IsSetSuccess() bool
- func (p *GetStructResult) Read(iprot thrift.TProtocol) error
- func (p *GetStructResult) ReadField0(iprot thrift.TProtocol) error
- func (p *GetStructResult) String() string
- func (p *GetStructResult) Write(oprot thrift.TProtocol) error
- type SharedService
- type SharedServiceClient
- type SharedServiceProcessor
- func (p *SharedServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *SharedServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *SharedServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *SharedServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type SharedStruct
- func (p *SharedStruct) GetKey() int32
- func (p *SharedStruct) GetValue() string
- func (p *SharedStruct) Read(iprot thrift.TProtocol) error
- func (p *SharedStruct) ReadField1(iprot thrift.TProtocol) error
- func (p *SharedStruct) ReadField2(iprot thrift.TProtocol) error
- func (p *SharedStruct) String() string
- func (p *SharedStruct) Write(oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
type GetStructArgs ¶
type GetStructArgs struct {
Key int32 `thrift:"key,1" json:"key"`
}
func NewGetStructArgs ¶
func NewGetStructArgs() *GetStructArgs
func (*GetStructArgs) GetKey ¶
func (p *GetStructArgs) GetKey() int32
func (*GetStructArgs) ReadField1 ¶
func (p *GetStructArgs) ReadField1(iprot thrift.TProtocol) error
func (*GetStructArgs) String ¶
func (p *GetStructArgs) String() string
type GetStructResult ¶
type GetStructResult struct {
Success *SharedStruct `thrift:"success,0" json:"success"`
}
func NewGetStructResult ¶
func NewGetStructResult() *GetStructResult
func (*GetStructResult) GetSuccess ¶
func (p *GetStructResult) GetSuccess() *SharedStruct
func (*GetStructResult) IsSetSuccess ¶
func (p *GetStructResult) IsSetSuccess() bool
func (*GetStructResult) ReadField0 ¶
func (p *GetStructResult) ReadField0(iprot thrift.TProtocol) error
func (*GetStructResult) String ¶
func (p *GetStructResult) String() string
type SharedService ¶
type SharedService interface { // - Key GetStruct(key int32) (r *SharedStruct, err error) }
type SharedServiceClient ¶
type SharedServiceClient struct {}
func NewSharedServiceClientFactory ¶
func NewSharedServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *SharedServiceClient
func NewSharedServiceClientProtocol ¶
func NewSharedServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SharedServiceClient
func (*SharedServiceClient) GetStruct ¶
func (p *SharedServiceClient) GetStruct(key int32) (r *SharedStruct, err error)
Parameters:
- Key
type SharedServiceProcessor ¶
type SharedServiceProcessor struct {
// contains filtered or unexported fields
}
func NewSharedServiceProcessor ¶
func NewSharedServiceProcessor(handler SharedService) *SharedServiceProcessor
func (*SharedServiceProcessor) AddToProcessorMap ¶
func (p *SharedServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*SharedServiceProcessor) GetProcessorFunction ¶
func (p *SharedServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*SharedServiceProcessor) Process ¶
func (p *SharedServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*SharedServiceProcessor) ProcessorMap ¶
func (p *SharedServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type SharedStruct ¶
type SharedStruct struct {}
var GetStructResult_Success_DEFAULT *SharedStruct
func NewSharedStruct ¶
func NewSharedStruct() *SharedStruct
func (*SharedStruct) GetKey ¶
func (p *SharedStruct) GetKey() int32
func (*SharedStruct) GetValue ¶
func (p *SharedStruct) GetValue() string
func (*SharedStruct) ReadField1 ¶
func (p *SharedStruct) ReadField1(iprot thrift.TProtocol) error
func (*SharedStruct) ReadField2 ¶
func (p *SharedStruct) ReadField2(iprot thrift.TProtocol) error
func (*SharedStruct) String ¶
func (p *SharedStruct) String() string
Click to show internal directories.
Click to hide internal directories.