Documentation ¶
Overview ¶
Autogenerated by thrift-gen. Do not modify.
Index ¶
- Variables
- func NewTChanSecondServiceServer(handler TChanSecondService) thrift.TChanServer
- func NewTChanSimpleServiceServer(handler TChanSimpleService) thrift.TChanServer
- type CallArgs
- type CallResult
- type Data
- func (p *Data) GetB1() bool
- func (p *Data) GetI3() int32
- func (p *Data) GetS2() string
- func (p *Data) Read(iprot thrift.TProtocol) error
- func (p *Data) ReadField1(iprot thrift.TProtocol) error
- func (p *Data) ReadField2(iprot thrift.TProtocol) error
- func (p *Data) ReadField3(iprot thrift.TProtocol) error
- func (p *Data) String() string
- func (p *Data) Write(oprot thrift.TProtocol) error
- type EchoArgs
- type EchoResult
- type SecondService
- type SecondServiceClient
- type SecondServiceProcessor
- func (p *SecondServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *SecondServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *SecondServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *SecondServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type SimpleArgs
- type SimpleErr
- type SimpleResult
- func (p *SimpleResult) GetSimpleErr() *SimpleErr
- func (p *SimpleResult) IsSetSimpleErr() bool
- func (p *SimpleResult) Read(iprot thrift.TProtocol) error
- func (p *SimpleResult) ReadField1(iprot thrift.TProtocol) error
- func (p *SimpleResult) String() string
- func (p *SimpleResult) Write(oprot thrift.TProtocol) error
- type SimpleService
- type SimpleServiceClient
- type SimpleServiceProcessor
- func (p *SimpleServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *SimpleServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *SimpleServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *SimpleServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type TChanSecondService
- type TChanSimpleService
Constants ¶
This section is empty.
Variables ¶
View Source
var EchoResult_Success_DEFAULT string
View Source
var GoUnusedProtection__ int
Functions ¶
func NewTChanSecondServiceServer ¶
func NewTChanSecondServiceServer(handler TChanSecondService) thrift.TChanServer
func NewTChanSimpleServiceServer ¶
func NewTChanSimpleServiceServer(handler TChanSimpleService) thrift.TChanServer
Types ¶
type CallArgs ¶
type CallArgs struct {
Arg *Data `thrift:"arg,1" json:"arg"`
}
func NewCallArgs ¶
func NewCallArgs() *CallArgs
type CallResult ¶
type CallResult struct {
Success *Data `thrift:"success,0" json:"success"`
}
func NewCallResult ¶
func NewCallResult() *CallResult
func (*CallResult) GetSuccess ¶
func (p *CallResult) GetSuccess() *Data
func (*CallResult) IsSetSuccess ¶
func (p *CallResult) IsSetSuccess() bool
func (*CallResult) ReadField0 ¶
func (p *CallResult) ReadField0(iprot thrift.TProtocol) error
func (*CallResult) String ¶
func (p *CallResult) String() string
type Data ¶
type Data struct { B1 bool `thrift:"b1,1" json:"b1"` S2 string `thrift:"s2,2" json:"s2"` I3 int32 `thrift:"i3,3" json:"i3"` }
var CallArgs_Arg_DEFAULT *Data
var CallResult_Success_DEFAULT *Data
type EchoArgs ¶
type EchoArgs struct {
Arg string `thrift:"arg,1" json:"arg"`
}
func NewEchoArgs ¶
func NewEchoArgs() *EchoArgs
type EchoResult ¶
type EchoResult struct {
Success *string `thrift:"success,0" json:"success"`
}
func NewEchoResult ¶
func NewEchoResult() *EchoResult
func (*EchoResult) GetSuccess ¶
func (p *EchoResult) GetSuccess() string
func (*EchoResult) IsSetSuccess ¶
func (p *EchoResult) IsSetSuccess() bool
func (*EchoResult) ReadField0 ¶
func (p *EchoResult) ReadField0(iprot thrift.TProtocol) error
func (*EchoResult) String ¶
func (p *EchoResult) String() string
type SecondService ¶
type SecondServiceClient ¶
type SecondServiceClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewSecondServiceClientFactory ¶
func NewSecondServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *SecondServiceClient
func NewSecondServiceClientProtocol ¶
func NewSecondServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SecondServiceClient
type SecondServiceProcessor ¶
type SecondServiceProcessor struct {
// contains filtered or unexported fields
}
func NewSecondServiceProcessor ¶
func NewSecondServiceProcessor(handler SecondService) *SecondServiceProcessor
func (*SecondServiceProcessor) AddToProcessorMap ¶
func (p *SecondServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*SecondServiceProcessor) GetProcessorFunction ¶
func (p *SecondServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*SecondServiceProcessor) Process ¶
func (p *SecondServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*SecondServiceProcessor) ProcessorMap ¶
func (p *SecondServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type SimpleArgs ¶
type SimpleArgs struct { }
func NewSimpleArgs ¶
func NewSimpleArgs() *SimpleArgs
func (*SimpleArgs) String ¶
func (p *SimpleArgs) String() string
type SimpleErr ¶
type SimpleErr struct {
Message string `thrift:"message,1" json:"message"`
}
var SimpleResult_SimpleErr_DEFAULT *SimpleErr
func NewSimpleErr ¶
func NewSimpleErr() *SimpleErr
func (*SimpleErr) GetMessage ¶
type SimpleResult ¶
type SimpleResult struct {
SimpleErr *SimpleErr `thrift:"simpleErr,1" json:"simpleErr"`
}
func NewSimpleResult ¶
func NewSimpleResult() *SimpleResult
func (*SimpleResult) GetSimpleErr ¶
func (p *SimpleResult) GetSimpleErr() *SimpleErr
func (*SimpleResult) IsSetSimpleErr ¶
func (p *SimpleResult) IsSetSimpleErr() bool
func (*SimpleResult) ReadField1 ¶
func (p *SimpleResult) ReadField1(iprot thrift.TProtocol) error
func (*SimpleResult) String ¶
func (p *SimpleResult) String() string
type SimpleService ¶
type SimpleServiceClient ¶
type SimpleServiceClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewSimpleServiceClientFactory ¶
func NewSimpleServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *SimpleServiceClient
func NewSimpleServiceClientProtocol ¶
func NewSimpleServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SimpleServiceClient
func (*SimpleServiceClient) Call ¶
func (p *SimpleServiceClient) Call(arg *Data) (r *Data, err error)
Parameters:
- Arg
func (*SimpleServiceClient) Simple ¶
func (p *SimpleServiceClient) Simple() (err error)
type SimpleServiceProcessor ¶
type SimpleServiceProcessor struct {
// contains filtered or unexported fields
}
func NewSimpleServiceProcessor ¶
func NewSimpleServiceProcessor(handler SimpleService) *SimpleServiceProcessor
func (*SimpleServiceProcessor) AddToProcessorMap ¶
func (p *SimpleServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*SimpleServiceProcessor) GetProcessorFunction ¶
func (p *SimpleServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*SimpleServiceProcessor) Process ¶
func (p *SimpleServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*SimpleServiceProcessor) ProcessorMap ¶
func (p *SimpleServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type TChanSecondService ¶
func NewTChanSecondServiceClient ¶
func NewTChanSecondServiceClient(client thrift.TChanClient) TChanSecondService
type TChanSimpleService ¶
type TChanSimpleService interface { Call(ctx thrift.Context, arg *Data) (*Data, error) Simple(ctx thrift.Context) error }
func NewTChanSimpleServiceClient ¶
func NewTChanSimpleServiceClient(client thrift.TChanClient) TChanSimpleService
Click to show internal directories.
Click to hide internal directories.