Documentation ¶
Overview ¶
Package echo is generated code used to make or handle TChannel calls using Thrift.
Index ¶
- Variables
- func NewTChanEchoInheritedClient(thriftService string, client thrift.TChanClient) *tchanEchoClient
- func NewTChanEchoServer(handler TChanEcho) thrift.TChanServer
- type Echo
- type EchoClient
- type EchoEchoArgs
- type EchoEchoResult
- type EchoProcessor
- func (p *EchoProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *EchoProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *EchoProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *EchoProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Ping
- type Pong
- type TChanEcho
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
Functions ¶
func NewTChanEchoInheritedClient ¶
func NewTChanEchoInheritedClient(thriftService string, client thrift.TChanClient) *tchanEchoClient
func NewTChanEchoServer ¶
func NewTChanEchoServer(handler TChanEcho) thrift.TChanServer
NewTChanEchoServer wraps a handler for TChanEcho so it can be registered with a thrift.Server.
Types ¶
type EchoClient ¶
type EchoClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewEchoClientFactory ¶
func NewEchoClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *EchoClient
func NewEchoClientProtocol ¶
func NewEchoClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *EchoClient
type EchoEchoArgs ¶
type EchoEchoArgs struct {
Ping *Ping `thrift:"ping,1" json:"ping"`
}
Attributes:
- Ping
func NewEchoEchoArgs ¶
func NewEchoEchoArgs() *EchoEchoArgs
func (*EchoEchoArgs) GetPing ¶
func (p *EchoEchoArgs) GetPing() *Ping
func (*EchoEchoArgs) IsSetPing ¶
func (p *EchoEchoArgs) IsSetPing() bool
func (*EchoEchoArgs) String ¶
func (p *EchoEchoArgs) String() string
type EchoEchoResult ¶
type EchoEchoResult struct {
Success *Pong `thrift:"success,0" json:"success,omitempty"`
}
Attributes:
- Success
func NewEchoEchoResult ¶
func NewEchoEchoResult() *EchoEchoResult
func (*EchoEchoResult) GetSuccess ¶
func (p *EchoEchoResult) GetSuccess() *Pong
func (*EchoEchoResult) IsSetSuccess ¶
func (p *EchoEchoResult) IsSetSuccess() bool
func (*EchoEchoResult) String ¶
func (p *EchoEchoResult) String() string
type EchoProcessor ¶
type EchoProcessor struct {
// contains filtered or unexported fields
}
func NewEchoProcessor ¶
func NewEchoProcessor(handler Echo) *EchoProcessor
func (*EchoProcessor) AddToProcessorMap ¶
func (p *EchoProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*EchoProcessor) GetProcessorFunction ¶
func (p *EchoProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*EchoProcessor) Process ¶
func (p *EchoProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*EchoProcessor) ProcessorMap ¶
func (p *EchoProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type Ping ¶
type Ping struct {
Beep string `thrift:"beep,1,required" json:"beep"`
}
Attributes:
- Beep
var EchoEchoArgs_Ping_DEFAULT *Ping
type Pong ¶
type Pong struct {
Boop string `thrift:"boop,1,required" json:"boop"`
}
Attributes:
- Boop
var EchoEchoResult_Success_DEFAULT *Pong
type TChanEcho ¶
TChanEcho is the interface that defines the server handler and client interface.
func NewTChanEchoClient ¶
func NewTChanEchoClient(client thrift.TChanClient) TChanEcho
NewTChanEchoClient creates a client that can be used to make remote calls.
Click to show internal directories.
Click to hide internal directories.