Documentation ¶
Overview ¶
Autogenerated by thrift-gen. Do not modify.
Index ¶
- Variables
- func NewTChanFirstServer(handler TChanFirst) thrift.TChanServer
- func NewTChanSecondServer(handler TChanSecond) thrift.TChanServer
- type AppErrorArgs
- type AppErrorResult
- type EchoArgs
- type EchoResult
- type First
- type FirstClient
- type FirstProcessor
- func (p *FirstProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *FirstProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *FirstProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *FirstProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type HealthCheckRes
- func (p *HealthCheckRes) GetHealthy() bool
- func (p *HealthCheckRes) GetMsg() string
- func (p *HealthCheckRes) Read(iprot thrift.TProtocol) error
- func (p *HealthCheckRes) ReadField1(iprot thrift.TProtocol) error
- func (p *HealthCheckRes) ReadField2(iprot thrift.TProtocol) error
- func (p *HealthCheckRes) String() string
- func (p *HealthCheckRes) Write(oprot thrift.TProtocol) error
- type HealthcheckArgs
- type HealthcheckResult
- func (p *HealthcheckResult) GetSuccess() *HealthCheckRes
- func (p *HealthcheckResult) IsSetSuccess() bool
- func (p *HealthcheckResult) Read(iprot thrift.TProtocol) error
- func (p *HealthcheckResult) ReadField0(iprot thrift.TProtocol) error
- func (p *HealthcheckResult) String() string
- func (p *HealthcheckResult) Write(oprot thrift.TProtocol) error
- 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 TChanFirst
- type TChanSecond
- type TestArgs
- type TestResult
Constants ¶
This section is empty.
Variables ¶
View Source
var EchoResult_Success_DEFAULT string
View Source
var GoUnusedProtection__ int
Functions ¶
func NewTChanFirstServer ¶
func NewTChanFirstServer(handler TChanFirst) thrift.TChanServer
func NewTChanSecondServer ¶
func NewTChanSecondServer(handler TChanSecond) thrift.TChanServer
Types ¶
type AppErrorArgs ¶
type AppErrorArgs struct { }
func NewAppErrorArgs ¶
func NewAppErrorArgs() *AppErrorArgs
func (*AppErrorArgs) String ¶
func (p *AppErrorArgs) String() string
type AppErrorResult ¶
type AppErrorResult struct { }
func NewAppErrorResult ¶
func NewAppErrorResult() *AppErrorResult
func (*AppErrorResult) String ¶
func (p *AppErrorResult) String() string
type EchoArgs ¶
type EchoArgs struct {
Msg string `thrift:"msg,1" json:"msg"`
}
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 FirstClient ¶
type FirstClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
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 FirstProcessor ¶
type FirstProcessor struct {
// contains filtered or unexported fields
}
func NewFirstProcessor ¶
func NewFirstProcessor(handler First) *FirstProcessor
func (*FirstProcessor) AddToProcessorMap ¶
func (p *FirstProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*FirstProcessor) GetProcessorFunction ¶
func (p *FirstProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*FirstProcessor) Process ¶
func (p *FirstProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*FirstProcessor) ProcessorMap ¶
func (p *FirstProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type HealthCheckRes ¶
type HealthCheckRes struct { Healthy bool `thrift:"healthy,1" json:"healthy"` Msg string `thrift:"msg,2" json:"msg"` }
var HealthcheckResult_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) ReadField1 ¶
func (p *HealthCheckRes) ReadField1(iprot thrift.TProtocol) error
func (*HealthCheckRes) ReadField2 ¶
func (p *HealthCheckRes) ReadField2(iprot thrift.TProtocol) error
func (*HealthCheckRes) String ¶
func (p *HealthCheckRes) String() string
type HealthcheckArgs ¶
type HealthcheckArgs struct { }
func NewHealthcheckArgs ¶
func NewHealthcheckArgs() *HealthcheckArgs
func (*HealthcheckArgs) String ¶
func (p *HealthcheckArgs) String() string
type HealthcheckResult ¶
type HealthcheckResult struct {
Success *HealthCheckRes `thrift:"success,0" json:"success"`
}
func NewHealthcheckResult ¶
func NewHealthcheckResult() *HealthcheckResult
func (*HealthcheckResult) GetSuccess ¶
func (p *HealthcheckResult) GetSuccess() *HealthCheckRes
func (*HealthcheckResult) IsSetSuccess ¶
func (p *HealthcheckResult) IsSetSuccess() bool
func (*HealthcheckResult) ReadField0 ¶
func (p *HealthcheckResult) ReadField0(iprot thrift.TProtocol) error
func (*HealthcheckResult) String ¶
func (p *HealthcheckResult) 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 TChanFirst ¶
type TChanFirst interface { AppError(ctx thrift.Context) error Echo(ctx thrift.Context, msg string) (string, error) Healthcheck(ctx thrift.Context) (*HealthCheckRes, error) }
func NewTChanFirstClient ¶
func NewTChanFirstClient(client thrift.TChanClient) TChanFirst
type TChanSecond ¶
func NewTChanSecondClient ¶
func NewTChanSecondClient(client thrift.TChanClient) TChanSecond
type TestResult ¶
type TestResult struct { }
func NewTestResult ¶
func NewTestResult() *TestResult
func (*TestResult) String ¶
func (p *TestResult) String() string
Click to show internal directories.
Click to hide internal directories.