test

package
v0.0.0-...-a1a640b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Autogenerated by thrift-gen. Do not modify.

Index

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) Read

func (p *AppErrorArgs) Read(iprot thrift.TProtocol) error

func (*AppErrorArgs) String

func (p *AppErrorArgs) String() string

func (*AppErrorArgs) Write

func (p *AppErrorArgs) Write(oprot thrift.TProtocol) error

type AppErrorResult

type AppErrorResult struct {
}

func NewAppErrorResult

func NewAppErrorResult() *AppErrorResult

func (*AppErrorResult) Read

func (p *AppErrorResult) Read(iprot thrift.TProtocol) error

func (*AppErrorResult) String

func (p *AppErrorResult) String() string

func (*AppErrorResult) Write

func (p *AppErrorResult) Write(oprot thrift.TProtocol) error

type EchoArgs

type EchoArgs struct {
	Msg string `thrift:"msg,1" json:"msg"`
}

func NewEchoArgs

func NewEchoArgs() *EchoArgs

func (*EchoArgs) GetMsg

func (p *EchoArgs) GetMsg() string

func (*EchoArgs) Read

func (p *EchoArgs) Read(iprot thrift.TProtocol) error

func (*EchoArgs) ReadField1

func (p *EchoArgs) ReadField1(iprot thrift.TProtocol) error

func (*EchoArgs) String

func (p *EchoArgs) String() string

func (*EchoArgs) Write

func (p *EchoArgs) Write(oprot thrift.TProtocol) error

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) Read

func (p *EchoResult) Read(iprot thrift.TProtocol) error

func (*EchoResult) ReadField0

func (p *EchoResult) ReadField0(iprot thrift.TProtocol) error

func (*EchoResult) String

func (p *EchoResult) String() string

func (*EchoResult) Write

func (p *EchoResult) Write(oprot thrift.TProtocol) error

type First

type First interface {
	// Parameters:
	//  - Msg
	Echo(msg string) (r string, err error)
	Healthcheck() (r *HealthCheckRes, err error)
	AppError() (err error)
}

type FirstClient

type FirstClient struct {
	Transport       thrift.TTransport
	ProtocolFactory thrift.TProtocolFactory
	InputProtocol   thrift.TProtocol
	OutputProtocol  thrift.TProtocol
	SeqId           int32
}

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) Read

func (p *HealthCheckRes) Read(iprot thrift.TProtocol) error

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

func (*HealthCheckRes) Write

func (p *HealthCheckRes) Write(oprot thrift.TProtocol) error

type HealthcheckArgs

type HealthcheckArgs struct {
}

func NewHealthcheckArgs

func NewHealthcheckArgs() *HealthcheckArgs

func (*HealthcheckArgs) Read

func (p *HealthcheckArgs) Read(iprot thrift.TProtocol) error

func (*HealthcheckArgs) String

func (p *HealthcheckArgs) String() string

func (*HealthcheckArgs) Write

func (p *HealthcheckArgs) Write(oprot thrift.TProtocol) error

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) Read

func (p *HealthcheckResult) Read(iprot thrift.TProtocol) error

func (*HealthcheckResult) ReadField0

func (p *HealthcheckResult) ReadField0(iprot thrift.TProtocol) error

func (*HealthcheckResult) String

func (p *HealthcheckResult) String() string

func (*HealthcheckResult) Write

func (p *HealthcheckResult) Write(oprot thrift.TProtocol) error

type Second

type Second interface {
	Test() (err error)
}

type SecondClient

type SecondClient struct {
	Transport       thrift.TTransport
	ProtocolFactory thrift.TProtocolFactory
	InputProtocol   thrift.TProtocol
	OutputProtocol  thrift.TProtocol
	SeqId           int32
}

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

type TChanSecond interface {
	Test(ctx thrift.Context) error
}

func NewTChanSecondClient

func NewTChanSecondClient(client thrift.TChanClient) TChanSecond

type TestArgs

type TestArgs struct {
}

func NewTestArgs

func NewTestArgs() *TestArgs

func (*TestArgs) Read

func (p *TestArgs) Read(iprot thrift.TProtocol) error

func (*TestArgs) String

func (p *TestArgs) String() string

func (*TestArgs) Write

func (p *TestArgs) Write(oprot thrift.TProtocol) error

type TestResult

type TestResult struct {
}

func NewTestResult

func NewTestResult() *TestResult

func (*TestResult) Read

func (p *TestResult) Read(iprot thrift.TProtocol) error

func (*TestResult) String

func (p *TestResult) String() string

func (*TestResult) Write

func (p *TestResult) Write(oprot thrift.TProtocol) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL