Documentation ¶
Overview ¶
Package test is generated code used to make or handle TChannel calls using Thrift.
Index ¶
- Variables
- func NewTChanSecondServiceInheritedClient(thriftService string, client thrift.TChanClient) *tchanSecondServiceClient
- func NewTChanSecondServiceServer(handler TChanSecondService) thrift.TChanServer
- func NewTChanSimpleServiceInheritedClient(thriftService string, client thrift.TChanClient) *tchanSimpleServiceClient
- func NewTChanSimpleServiceServer(handler TChanSimpleService) thrift.TChanServer
- type Data
- type SecondService
- type SecondServiceClient
- type SecondServiceEchoArgs
- type SecondServiceEchoResult
- 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 SimpleErr
- type SimpleService
- type SimpleServiceCallArgs
- type SimpleServiceCallResult
- 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 SimpleServiceSimpleArgs
- type SimpleServiceSimpleResult
- func (p *SimpleServiceSimpleResult) GetSimpleErr() *SimpleErr
- func (p *SimpleServiceSimpleResult) IsSetSimpleErr() bool
- func (p *SimpleServiceSimpleResult) Read(iprot thrift.TProtocol) error
- func (p *SimpleServiceSimpleResult) String() string
- func (p *SimpleServiceSimpleResult) Write(oprot thrift.TProtocol) error
- type TChanSecondService
- type TChanSimpleService
Constants ¶
This section is empty.
Variables ¶
var GoUnusedProtection__ int
var SecondServiceEchoResult_Success_DEFAULT string
Functions ¶
func NewTChanSecondServiceInheritedClient ¶
func NewTChanSecondServiceInheritedClient(thriftService string, client thrift.TChanClient) *tchanSecondServiceClient
func NewTChanSecondServiceServer ¶
func NewTChanSecondServiceServer(handler TChanSecondService) thrift.TChanServer
NewTChanSecondServiceServer wraps a handler for TChanSecondService so it can be registered with a thrift.Server.
func NewTChanSimpleServiceInheritedClient ¶
func NewTChanSimpleServiceInheritedClient(thriftService string, client thrift.TChanClient) *tchanSimpleServiceClient
func NewTChanSimpleServiceServer ¶
func NewTChanSimpleServiceServer(handler TChanSimpleService) thrift.TChanServer
NewTChanSimpleServiceServer wraps a handler for TChanSimpleService so it can be registered with a thrift.Server.
Types ¶
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"` }
Attributes:
- B1
- S2
- I3
var SimpleServiceCallArgs_Arg_DEFAULT *Data
var SimpleServiceCallResult_Success_DEFAULT *Data
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 SecondServiceEchoArgs ¶
type SecondServiceEchoArgs struct {
Arg string `thrift:"arg,1" json:"arg"`
}
Attributes:
- Arg
func NewSecondServiceEchoArgs ¶
func NewSecondServiceEchoArgs() *SecondServiceEchoArgs
func (*SecondServiceEchoArgs) GetArg ¶
func (p *SecondServiceEchoArgs) GetArg() string
func (*SecondServiceEchoArgs) Read ¶
func (p *SecondServiceEchoArgs) Read(iprot thrift.TProtocol) error
func (*SecondServiceEchoArgs) String ¶
func (p *SecondServiceEchoArgs) String() string
type SecondServiceEchoResult ¶
type SecondServiceEchoResult struct {
Success *string `thrift:"success,0" json:"success,omitempty"`
}
Attributes:
- Success
func NewSecondServiceEchoResult ¶
func NewSecondServiceEchoResult() *SecondServiceEchoResult
func (*SecondServiceEchoResult) GetSuccess ¶
func (p *SecondServiceEchoResult) GetSuccess() string
func (*SecondServiceEchoResult) IsSetSuccess ¶
func (p *SecondServiceEchoResult) IsSetSuccess() bool
func (*SecondServiceEchoResult) Read ¶
func (p *SecondServiceEchoResult) Read(iprot thrift.TProtocol) error
func (*SecondServiceEchoResult) String ¶
func (p *SecondServiceEchoResult) String() string
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 SimpleErr ¶
type SimpleErr struct {
Message string `thrift:"message,1" json:"message"`
}
Attributes:
- Message
var SimpleServiceSimpleResult_SimpleErr_DEFAULT *SimpleErr
func NewSimpleErr ¶
func NewSimpleErr() *SimpleErr
func (*SimpleErr) GetMessage ¶
type SimpleService ¶
type SimpleServiceCallArgs ¶
type SimpleServiceCallArgs struct {
Arg *Data `thrift:"arg,1" json:"arg"`
}
Attributes:
- Arg
func NewSimpleServiceCallArgs ¶
func NewSimpleServiceCallArgs() *SimpleServiceCallArgs
func (*SimpleServiceCallArgs) GetArg ¶
func (p *SimpleServiceCallArgs) GetArg() *Data
func (*SimpleServiceCallArgs) IsSetArg ¶
func (p *SimpleServiceCallArgs) IsSetArg() bool
func (*SimpleServiceCallArgs) Read ¶
func (p *SimpleServiceCallArgs) Read(iprot thrift.TProtocol) error
func (*SimpleServiceCallArgs) String ¶
func (p *SimpleServiceCallArgs) String() string
type SimpleServiceCallResult ¶
type SimpleServiceCallResult struct {
Success *Data `thrift:"success,0" json:"success,omitempty"`
}
Attributes:
- Success
func NewSimpleServiceCallResult ¶
func NewSimpleServiceCallResult() *SimpleServiceCallResult
func (*SimpleServiceCallResult) GetSuccess ¶
func (p *SimpleServiceCallResult) GetSuccess() *Data
func (*SimpleServiceCallResult) IsSetSuccess ¶
func (p *SimpleServiceCallResult) IsSetSuccess() bool
func (*SimpleServiceCallResult) Read ¶
func (p *SimpleServiceCallResult) Read(iprot thrift.TProtocol) error
func (*SimpleServiceCallResult) String ¶
func (p *SimpleServiceCallResult) String() string
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 SimpleServiceSimpleArgs ¶
type SimpleServiceSimpleArgs struct { }
func NewSimpleServiceSimpleArgs ¶
func NewSimpleServiceSimpleArgs() *SimpleServiceSimpleArgs
func (*SimpleServiceSimpleArgs) Read ¶
func (p *SimpleServiceSimpleArgs) Read(iprot thrift.TProtocol) error
func (*SimpleServiceSimpleArgs) String ¶
func (p *SimpleServiceSimpleArgs) String() string
type SimpleServiceSimpleResult ¶
type SimpleServiceSimpleResult struct {
SimpleErr *SimpleErr `thrift:"simpleErr,1" json:"simpleErr,omitempty"`
}
Attributes:
- SimpleErr
func NewSimpleServiceSimpleResult ¶
func NewSimpleServiceSimpleResult() *SimpleServiceSimpleResult
func (*SimpleServiceSimpleResult) GetSimpleErr ¶
func (p *SimpleServiceSimpleResult) GetSimpleErr() *SimpleErr
func (*SimpleServiceSimpleResult) IsSetSimpleErr ¶
func (p *SimpleServiceSimpleResult) IsSetSimpleErr() bool
func (*SimpleServiceSimpleResult) Read ¶
func (p *SimpleServiceSimpleResult) Read(iprot thrift.TProtocol) error
func (*SimpleServiceSimpleResult) String ¶
func (p *SimpleServiceSimpleResult) String() string
type TChanSecondService ¶
TChanSecondService is the interface that defines the server handler and client interface.
func NewTChanSecondServiceClient ¶
func NewTChanSecondServiceClient(client thrift.TChanClient) TChanSecondService
NewTChanSecondServiceClient creates a client that can be used to make remote calls.
type TChanSimpleService ¶
type TChanSimpleService interface { Call(ctx thrift.Context, arg *Data) (*Data, error) Simple(ctx thrift.Context) error }
TChanSimpleService is the interface that defines the server handler and client interface.
func NewTChanSimpleServiceClient ¶
func NewTChanSimpleServiceClient(client thrift.TChanClient) TChanSimpleService
NewTChanSimpleServiceClient creates a client that can be used to make remote calls.