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 NewTChanSecondServiceServer

func NewTChanSecondServiceServer(handler TChanSecondService) thrift.TChanServer

func NewTChanSimpleServiceServer

func NewTChanSimpleServiceServer(handler TChanSimpleService) thrift.TChanServer

Types

type CallArgs

type CallArgs struct {
	Arg *Data `thrift:"arg,1" json:"arg"`
}

func NewCallArgs

func NewCallArgs() *CallArgs

func (*CallArgs) GetArg

func (p *CallArgs) GetArg() *Data

func (*CallArgs) IsSetArg

func (p *CallArgs) IsSetArg() bool

func (*CallArgs) Read

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

func (*CallArgs) ReadField1

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

func (*CallArgs) String

func (p *CallArgs) String() string

func (*CallArgs) Write

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

type CallResult

type CallResult struct {
	Success *Data `thrift:"success,0" json:"success"`
}

func NewCallResult

func NewCallResult() *CallResult

func (*CallResult) GetSuccess

func (p *CallResult) GetSuccess() *Data

func (*CallResult) IsSetSuccess

func (p *CallResult) IsSetSuccess() bool

func (*CallResult) Read

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

func (*CallResult) ReadField0

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

func (*CallResult) String

func (p *CallResult) String() string

func (*CallResult) Write

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

type Data

type Data struct {
	B1 bool   `thrift:"b1,1" json:"b1"`
	S2 string `thrift:"s2,2" json:"s2"`
	I3 int32  `thrift:"i3,3" json:"i3"`
}
var CallArgs_Arg_DEFAULT *Data
var CallResult_Success_DEFAULT *Data

func NewData

func NewData() *Data

func (*Data) GetB1

func (p *Data) GetB1() bool

func (*Data) GetI3

func (p *Data) GetI3() int32

func (*Data) GetS2

func (p *Data) GetS2() string

func (*Data) Read

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

func (*Data) ReadField1

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

func (*Data) ReadField2

func (p *Data) ReadField2(iprot thrift.TProtocol) error

func (*Data) ReadField3

func (p *Data) ReadField3(iprot thrift.TProtocol) error

func (*Data) String

func (p *Data) String() string

func (*Data) Write

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

type EchoArgs

type EchoArgs struct {
	Arg string `thrift:"arg,1" json:"arg"`
}

func NewEchoArgs

func NewEchoArgs() *EchoArgs

func (*EchoArgs) GetArg

func (p *EchoArgs) GetArg() 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 SecondService

type SecondService interface {
	// Parameters:
	//  - Arg
	Echo(arg string) (r string, err error)
}

type SecondServiceClient

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

func NewSecondServiceClientProtocol

func NewSecondServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SecondServiceClient

func (*SecondServiceClient) Echo

func (p *SecondServiceClient) Echo(arg string) (r string, err error)

Parameters:

  • Arg

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

type SimpleArgs

type SimpleArgs struct {
}

func NewSimpleArgs

func NewSimpleArgs() *SimpleArgs

func (*SimpleArgs) Read

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

func (*SimpleArgs) String

func (p *SimpleArgs) String() string

func (*SimpleArgs) Write

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

type SimpleErr

type SimpleErr struct {
	Message string `thrift:"message,1" json:"message"`
}
var SimpleResult_SimpleErr_DEFAULT *SimpleErr

func NewSimpleErr

func NewSimpleErr() *SimpleErr

func (*SimpleErr) Error

func (p *SimpleErr) Error() string

func (*SimpleErr) GetMessage

func (p *SimpleErr) GetMessage() string

func (*SimpleErr) Read

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

func (*SimpleErr) ReadField1

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

func (*SimpleErr) String

func (p *SimpleErr) String() string

func (*SimpleErr) Write

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

type SimpleResult

type SimpleResult struct {
	SimpleErr *SimpleErr `thrift:"simpleErr,1" json:"simpleErr"`
}

func NewSimpleResult

func NewSimpleResult() *SimpleResult

func (*SimpleResult) GetSimpleErr

func (p *SimpleResult) GetSimpleErr() *SimpleErr

func (*SimpleResult) IsSetSimpleErr

func (p *SimpleResult) IsSetSimpleErr() bool

func (*SimpleResult) Read

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

func (*SimpleResult) ReadField1

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

func (*SimpleResult) String

func (p *SimpleResult) String() string

func (*SimpleResult) Write

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

type SimpleService

type SimpleService interface {
	// Parameters:
	//  - Arg
	Call(arg *Data) (r *Data, err error)
	Simple() (err error)
}

type SimpleServiceClient

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

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)

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

type TChanSecondService

type TChanSecondService interface {
	Echo(ctx thrift.Context, arg string) (string, error)
}

func NewTChanSecondServiceClient

func NewTChanSecondServiceClient(client thrift.TChanClient) TChanSecondService

type TChanSimpleService

type TChanSimpleService interface {
	Call(ctx thrift.Context, arg *Data) (*Data, error)
	Simple(ctx thrift.Context) error
}

func NewTChanSimpleServiceClient

func NewTChanSimpleServiceClient(client thrift.TChanClient) TChanSimpleService

Jump to

Keyboard shortcuts

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