Documentation ¶
Overview ¶
Package test is generated code used to make or handle TChannel calls using Thrift.
Index ¶
- Variables
- func NewTChanBaseInheritedClient(thriftService string, client thrift.TChanClient) *tchanBaseClient
- func NewTChanBaseServer(handler TChanBase) thrift.TChanServer
- func NewTChanFirstInheritedClient(thriftService string, client thrift.TChanClient) *tchanFirstClient
- func NewTChanFirstServer(handler TChanFirst) thrift.TChanServer
- func NewTChanSecondInheritedClient(thriftService string, client thrift.TChanClient) *tchanSecondClient
- func NewTChanSecondServer(handler TChanSecond) thrift.TChanServer
- type Base
- type BaseBaseCallArgs
- type BaseBaseCallResult
- type BaseClient
- type BaseProcessor
- func (p *BaseProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *BaseProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *BaseProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *BaseProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type First
- type FirstAppErrorArgs
- type FirstAppErrorResult
- type FirstClient
- type FirstEchoArgs
- type FirstEchoResult
- type FirstHealthcheckArgs
- type FirstHealthcheckResult
- func (p *FirstHealthcheckResult) GetSuccess() *HealthCheckRes
- func (p *FirstHealthcheckResult) IsSetSuccess() bool
- func (p *FirstHealthcheckResult) Read(iprot thrift.TProtocol) error
- func (p *FirstHealthcheckResult) String() string
- func (p *FirstHealthcheckResult) Write(oprot thrift.TProtocol) error
- type FirstProcessor
- type HealthCheckRes
- type Second
- type SecondClient
- type SecondProcessor
- func (p *SecondProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *SecondProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *SecondProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *SecondProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type SecondTestArgs
- type SecondTestResult
- type TChanBase
- type TChanFirst
- type TChanSecond
Constants ¶
This section is empty.
Variables ¶
var FirstEchoResult_Success_DEFAULT string
var GoUnusedProtection__ int
Functions ¶
func NewTChanBaseInheritedClient ¶
func NewTChanBaseInheritedClient(thriftService string, client thrift.TChanClient) *tchanBaseClient
func NewTChanBaseServer ¶
func NewTChanBaseServer(handler TChanBase) thrift.TChanServer
NewTChanBaseServer wraps a handler for TChanBase so it can be registered with a thrift.Server.
func NewTChanFirstInheritedClient ¶
func NewTChanFirstInheritedClient(thriftService string, client thrift.TChanClient) *tchanFirstClient
func NewTChanFirstServer ¶
func NewTChanFirstServer(handler TChanFirst) thrift.TChanServer
NewTChanFirstServer wraps a handler for TChanFirst so it can be registered with a thrift.Server.
func NewTChanSecondInheritedClient ¶
func NewTChanSecondInheritedClient(thriftService string, client thrift.TChanClient) *tchanSecondClient
func NewTChanSecondServer ¶
func NewTChanSecondServer(handler TChanSecond) thrift.TChanServer
NewTChanSecondServer wraps a handler for TChanSecond so it can be registered with a thrift.Server.
Types ¶
type BaseBaseCallArgs ¶
type BaseBaseCallArgs struct { }
func NewBaseBaseCallArgs ¶
func NewBaseBaseCallArgs() *BaseBaseCallArgs
func (*BaseBaseCallArgs) String ¶
func (p *BaseBaseCallArgs) String() string
type BaseBaseCallResult ¶
type BaseBaseCallResult struct { }
func NewBaseBaseCallResult ¶
func NewBaseBaseCallResult() *BaseBaseCallResult
func (*BaseBaseCallResult) String ¶
func (p *BaseBaseCallResult) String() string
type BaseClient ¶
type BaseClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewBaseClientFactory ¶
func NewBaseClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *BaseClient
func NewBaseClientProtocol ¶
func NewBaseClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *BaseClient
func (*BaseClient) BaseCall ¶
func (p *BaseClient) BaseCall() (err error)
type BaseProcessor ¶
type BaseProcessor struct {
// contains filtered or unexported fields
}
func NewBaseProcessor ¶
func NewBaseProcessor(handler Base) *BaseProcessor
func (*BaseProcessor) AddToProcessorMap ¶
func (p *BaseProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*BaseProcessor) GetProcessorFunction ¶
func (p *BaseProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*BaseProcessor) Process ¶
func (p *BaseProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*BaseProcessor) ProcessorMap ¶
func (p *BaseProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type FirstAppErrorArgs ¶
type FirstAppErrorArgs struct { }
func NewFirstAppErrorArgs ¶
func NewFirstAppErrorArgs() *FirstAppErrorArgs
func (*FirstAppErrorArgs) String ¶
func (p *FirstAppErrorArgs) String() string
type FirstAppErrorResult ¶
type FirstAppErrorResult struct { }
func NewFirstAppErrorResult ¶
func NewFirstAppErrorResult() *FirstAppErrorResult
func (*FirstAppErrorResult) String ¶
func (p *FirstAppErrorResult) String() string
type FirstClient ¶
type FirstClient struct {
*BaseClient
}
func NewFirstClientFactory ¶
func NewFirstClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *FirstClient
func NewFirstClientProtocol ¶
func NewFirstClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FirstClient
func (*FirstClient) AppError ¶
func (p *FirstClient) AppError() (err error)
func (*FirstClient) Echo ¶
func (p *FirstClient) Echo(msg string) (r string, err error)
Parameters:
- Msg
func (*FirstClient) Healthcheck ¶
func (p *FirstClient) Healthcheck() (r *HealthCheckRes, err error)
type FirstEchoArgs ¶
type FirstEchoArgs struct {
Msg string `thrift:"msg,1" json:"msg"`
}
Attributes:
- Msg
func NewFirstEchoArgs ¶
func NewFirstEchoArgs() *FirstEchoArgs
func (*FirstEchoArgs) GetMsg ¶
func (p *FirstEchoArgs) GetMsg() string
func (*FirstEchoArgs) String ¶
func (p *FirstEchoArgs) String() string
type FirstEchoResult ¶
type FirstEchoResult struct {
Success *string `thrift:"success,0" json:"success,omitempty"`
}
Attributes:
- Success
func NewFirstEchoResult ¶
func NewFirstEchoResult() *FirstEchoResult
func (*FirstEchoResult) GetSuccess ¶
func (p *FirstEchoResult) GetSuccess() string
func (*FirstEchoResult) IsSetSuccess ¶
func (p *FirstEchoResult) IsSetSuccess() bool
func (*FirstEchoResult) String ¶
func (p *FirstEchoResult) String() string
type FirstHealthcheckArgs ¶
type FirstHealthcheckArgs struct { }
func NewFirstHealthcheckArgs ¶
func NewFirstHealthcheckArgs() *FirstHealthcheckArgs
func (*FirstHealthcheckArgs) Read ¶
func (p *FirstHealthcheckArgs) Read(iprot thrift.TProtocol) error
func (*FirstHealthcheckArgs) String ¶
func (p *FirstHealthcheckArgs) String() string
type FirstHealthcheckResult ¶
type FirstHealthcheckResult struct {
Success *HealthCheckRes `thrift:"success,0" json:"success,omitempty"`
}
Attributes:
- Success
func NewFirstHealthcheckResult ¶
func NewFirstHealthcheckResult() *FirstHealthcheckResult
func (*FirstHealthcheckResult) GetSuccess ¶
func (p *FirstHealthcheckResult) GetSuccess() *HealthCheckRes
func (*FirstHealthcheckResult) IsSetSuccess ¶
func (p *FirstHealthcheckResult) IsSetSuccess() bool
func (*FirstHealthcheckResult) Read ¶
func (p *FirstHealthcheckResult) Read(iprot thrift.TProtocol) error
func (*FirstHealthcheckResult) String ¶
func (p *FirstHealthcheckResult) String() string
type FirstProcessor ¶
type FirstProcessor struct {
*BaseProcessor
}
func NewFirstProcessor ¶
func NewFirstProcessor(handler First) *FirstProcessor
type HealthCheckRes ¶
type HealthCheckRes struct { Healthy bool `thrift:"healthy,1" json:"healthy"` Msg string `thrift:"msg,2" json:"msg"` }
Attributes:
- Healthy
- Msg
var FirstHealthcheckResult_Success_DEFAULT *HealthCheckRes
func NewHealthCheckRes ¶
func NewHealthCheckRes() *HealthCheckRes
func (*HealthCheckRes) GetHealthy ¶
func (p *HealthCheckRes) GetHealthy() bool
func (*HealthCheckRes) GetMsg ¶
func (p *HealthCheckRes) GetMsg() string
func (*HealthCheckRes) String ¶
func (p *HealthCheckRes) String() string
type SecondClient ¶
type SecondClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewSecondClientFactory ¶
func NewSecondClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *SecondClient
func NewSecondClientProtocol ¶
func NewSecondClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SecondClient
func (*SecondClient) Test ¶
func (p *SecondClient) Test() (err error)
type SecondProcessor ¶
type SecondProcessor struct {
// contains filtered or unexported fields
}
func NewSecondProcessor ¶
func NewSecondProcessor(handler Second) *SecondProcessor
func (*SecondProcessor) AddToProcessorMap ¶
func (p *SecondProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*SecondProcessor) GetProcessorFunction ¶
func (p *SecondProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*SecondProcessor) Process ¶
func (p *SecondProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*SecondProcessor) ProcessorMap ¶
func (p *SecondProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type SecondTestArgs ¶
type SecondTestArgs struct { }
func NewSecondTestArgs ¶
func NewSecondTestArgs() *SecondTestArgs
func (*SecondTestArgs) String ¶
func (p *SecondTestArgs) String() string
type SecondTestResult ¶
type SecondTestResult struct { }
func NewSecondTestResult ¶
func NewSecondTestResult() *SecondTestResult
func (*SecondTestResult) String ¶
func (p *SecondTestResult) String() string
type TChanBase ¶
TChanBase is the interface that defines the server handler and client interface.
func NewTChanBaseClient ¶
func NewTChanBaseClient(client thrift.TChanClient) TChanBase
NewTChanBaseClient creates a client that can be used to make remote calls.
type TChanFirst ¶
type TChanFirst interface { TChanBase AppError(ctx thrift.Context) error Echo(ctx thrift.Context, msg string) (string, error) Healthcheck(ctx thrift.Context) (*HealthCheckRes, error) }
TChanFirst is the interface that defines the server handler and client interface.
func NewTChanFirstClient ¶
func NewTChanFirstClient(client thrift.TChanClient) TChanFirst
NewTChanFirstClient creates a client that can be used to make remote calls.
type TChanSecond ¶
TChanSecond is the interface that defines the server handler and client interface.
func NewTChanSecondClient ¶
func NewTChanSecondClient(client thrift.TChanClient) TChanSecond
NewTChanSecondClient creates a client that can be used to make remote calls.