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
- 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 NewErr_
- type SecondService
- type SecondServiceClient
- type SecondServiceEchoArgs
- func (p *SecondServiceEchoArgs) GetArg() string
- func (p *SecondServiceEchoArgs) Read(iprot thrift.TProtocol) error
- func (p *SecondServiceEchoArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *SecondServiceEchoArgs) String() string
- func (p *SecondServiceEchoArgs) Write(oprot thrift.TProtocol) error
- type SecondServiceEchoResult
- func (p *SecondServiceEchoResult) GetSuccess() string
- func (p *SecondServiceEchoResult) IsSetSuccess() bool
- func (p *SecondServiceEchoResult) Read(iprot thrift.TProtocol) error
- func (p *SecondServiceEchoResult) ReadField0(iprot thrift.TProtocol) error
- func (p *SecondServiceEchoResult) String() string
- func (p *SecondServiceEchoResult) Write(oprot thrift.TProtocol) error
- 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
- func (p *SimpleServiceCallArgs) GetArg() *Data
- func (p *SimpleServiceCallArgs) IsSetArg() bool
- func (p *SimpleServiceCallArgs) Read(iprot thrift.TProtocol) error
- func (p *SimpleServiceCallArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *SimpleServiceCallArgs) String() string
- func (p *SimpleServiceCallArgs) Write(oprot thrift.TProtocol) error
- type SimpleServiceCallResult
- func (p *SimpleServiceCallResult) GetSuccess() *Data
- func (p *SimpleServiceCallResult) IsSetSuccess() bool
- func (p *SimpleServiceCallResult) Read(iprot thrift.TProtocol) error
- func (p *SimpleServiceCallResult) ReadField0(iprot thrift.TProtocol) error
- func (p *SimpleServiceCallResult) String() string
- func (p *SimpleServiceCallResult) Write(oprot thrift.TProtocol) error
- 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 SimpleServiceSimpleFutureArgs
- type SimpleServiceSimpleFutureResult
- func (p *SimpleServiceSimpleFutureResult) GetNewErr_() *NewErr_
- func (p *SimpleServiceSimpleFutureResult) GetSimpleErr() *SimpleErr
- func (p *SimpleServiceSimpleFutureResult) IsSetNewErr_() bool
- func (p *SimpleServiceSimpleFutureResult) IsSetSimpleErr() bool
- func (p *SimpleServiceSimpleFutureResult) Read(iprot thrift.TProtocol) error
- func (p *SimpleServiceSimpleFutureResult) ReadField1(iprot thrift.TProtocol) error
- func (p *SimpleServiceSimpleFutureResult) ReadField2(iprot thrift.TProtocol) error
- func (p *SimpleServiceSimpleFutureResult) String() string
- func (p *SimpleServiceSimpleFutureResult) Write(oprot thrift.TProtocol) error
- type SimpleServiceSimpleResult
- func (p *SimpleServiceSimpleResult) GetSimpleErr() *SimpleErr
- func (p *SimpleServiceSimpleResult) IsSetSimpleErr() bool
- func (p *SimpleServiceSimpleResult) Read(iprot thrift.TProtocol) error
- func (p *SimpleServiceSimpleResult) ReadField1(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,required" db:"b1" json:"b1"` S2 string `thrift:"s2,2,required" db:"s2" json:"s2"` I3 int32 `thrift:"i3,3,required" db:"i3" json:"i3"` }
Attributes:
- B1
- S2
- I3
var SimpleServiceCallArgs_Arg_DEFAULT *Data
var SimpleServiceCallResult_Success_DEFAULT *Data
type NewErr_ ¶ added in v1.2.3
type NewErr_ struct {
Message string `thrift:"message,1" db:"message" json:"message"`
}
Attributes:
- Message
var SimpleServiceSimpleFutureResult_NewErr__DEFAULT *NewErr_
func NewNewErr_ ¶ added in v1.2.3
func NewNewErr_() *NewErr_
func (*NewErr_) GetMessage ¶ added in v1.2.3
func (*NewErr_) ReadField1 ¶ added in v1.2.3
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" db:"arg" 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) ReadField1 ¶ added in v1.0.8
func (p *SecondServiceEchoArgs) ReadField1(iprot thrift.TProtocol) error
func (*SecondServiceEchoArgs) String ¶
func (p *SecondServiceEchoArgs) String() string
type SecondServiceEchoResult ¶
type SecondServiceEchoResult struct {
Success *string `thrift:"success,0" db:"success" 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) ReadField0 ¶ added in v1.0.8
func (p *SecondServiceEchoResult) ReadField0(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" db:"message" json:"message"`
}
Attributes:
- Message
var SimpleServiceSimpleFutureResult_SimpleErr_DEFAULT *SimpleErr
var SimpleServiceSimpleResult_SimpleErr_DEFAULT *SimpleErr
func NewSimpleErr ¶
func NewSimpleErr() *SimpleErr
func (*SimpleErr) GetMessage ¶
func (*SimpleErr) ReadField1 ¶ added in v1.0.8
type SimpleService ¶
type SimpleServiceCallArgs ¶
type SimpleServiceCallArgs struct {
Arg *Data `thrift:"arg,1" db:"arg" 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) ReadField1 ¶ added in v1.0.8
func (p *SimpleServiceCallArgs) ReadField1(iprot thrift.TProtocol) error
func (*SimpleServiceCallArgs) String ¶
func (p *SimpleServiceCallArgs) String() string
type SimpleServiceCallResult ¶
type SimpleServiceCallResult struct {
Success *Data `thrift:"success,0" db:"success" 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) ReadField0 ¶ added in v1.0.8
func (p *SimpleServiceCallResult) ReadField0(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)
func (*SimpleServiceClient) SimpleFuture ¶ added in v1.2.3
func (p *SimpleServiceClient) SimpleFuture() (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 SimpleServiceSimpleFutureArgs ¶ added in v1.2.3
type SimpleServiceSimpleFutureArgs struct { }
func NewSimpleServiceSimpleFutureArgs ¶ added in v1.2.3
func NewSimpleServiceSimpleFutureArgs() *SimpleServiceSimpleFutureArgs
func (*SimpleServiceSimpleFutureArgs) Read ¶ added in v1.2.3
func (p *SimpleServiceSimpleFutureArgs) Read(iprot thrift.TProtocol) error
func (*SimpleServiceSimpleFutureArgs) String ¶ added in v1.2.3
func (p *SimpleServiceSimpleFutureArgs) String() string
type SimpleServiceSimpleFutureResult ¶ added in v1.2.3
type SimpleServiceSimpleFutureResult struct { SimpleErr *SimpleErr `thrift:"simpleErr,1" db:"simpleErr" json:"simpleErr,omitempty"` NewErr_ *NewErr_ `thrift:"newErr,2" db:"newErr" json:"newErr,omitempty"` }
Attributes:
- SimpleErr
- NewErr_
func NewSimpleServiceSimpleFutureResult ¶ added in v1.2.3
func NewSimpleServiceSimpleFutureResult() *SimpleServiceSimpleFutureResult
func (*SimpleServiceSimpleFutureResult) GetNewErr_ ¶ added in v1.2.3
func (p *SimpleServiceSimpleFutureResult) GetNewErr_() *NewErr_
func (*SimpleServiceSimpleFutureResult) GetSimpleErr ¶ added in v1.2.3
func (p *SimpleServiceSimpleFutureResult) GetSimpleErr() *SimpleErr
func (*SimpleServiceSimpleFutureResult) IsSetNewErr_ ¶ added in v1.2.3
func (p *SimpleServiceSimpleFutureResult) IsSetNewErr_() bool
func (*SimpleServiceSimpleFutureResult) IsSetSimpleErr ¶ added in v1.2.3
func (p *SimpleServiceSimpleFutureResult) IsSetSimpleErr() bool
func (*SimpleServiceSimpleFutureResult) Read ¶ added in v1.2.3
func (p *SimpleServiceSimpleFutureResult) Read(iprot thrift.TProtocol) error
func (*SimpleServiceSimpleFutureResult) ReadField1 ¶ added in v1.2.3
func (p *SimpleServiceSimpleFutureResult) ReadField1(iprot thrift.TProtocol) error
func (*SimpleServiceSimpleFutureResult) ReadField2 ¶ added in v1.2.3
func (p *SimpleServiceSimpleFutureResult) ReadField2(iprot thrift.TProtocol) error
func (*SimpleServiceSimpleFutureResult) String ¶ added in v1.2.3
func (p *SimpleServiceSimpleFutureResult) String() string
type SimpleServiceSimpleResult ¶
type SimpleServiceSimpleResult struct {
SimpleErr *SimpleErr `thrift:"simpleErr,1" db:"simpleErr" 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) ReadField1 ¶ added in v1.0.8
func (p *SimpleServiceSimpleResult) ReadField1(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 SimpleFuture(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.