add

package
v0.0.0-...-fa06ddb Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type AddService

type AddService interface {
	// Parameters:
	//  - A
	//  - B
	Sum(a int64, b int64) (r *SumReply, err error)
	// Parameters:
	//  - A
	//  - B
	Concat(a string, b string) (r *ConcatReply, err error)
}

type AddServiceClient

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

func NewAddServiceClientProtocol

func NewAddServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *AddServiceClient

func (*AddServiceClient) Concat

func (p *AddServiceClient) Concat(a string, b string) (r *ConcatReply, err error)

Parameters:

  • A
  • B

func (*AddServiceClient) Sum

func (p *AddServiceClient) Sum(a int64, b int64) (r *SumReply, err error)

Parameters:

  • A
  • B

type AddServiceProcessor

type AddServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewAddServiceProcessor

func NewAddServiceProcessor(handler AddService) *AddServiceProcessor

func (*AddServiceProcessor) AddToProcessorMap

func (p *AddServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*AddServiceProcessor) GetProcessorFunction

func (p *AddServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*AddServiceProcessor) Process

func (p *AddServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*AddServiceProcessor) ProcessorMap

func (p *AddServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

type ConcatArgs

type ConcatArgs struct {
	A string `thrift:"a,1" json:"a"`
	B string `thrift:"b,2" json:"b"`
}

func NewConcatArgs

func NewConcatArgs() *ConcatArgs

func (*ConcatArgs) GetA

func (p *ConcatArgs) GetA() string

func (*ConcatArgs) GetB

func (p *ConcatArgs) GetB() string

func (*ConcatArgs) Read

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

func (*ConcatArgs) ReadField1

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

func (*ConcatArgs) ReadField2

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

func (*ConcatArgs) String

func (p *ConcatArgs) String() string

func (*ConcatArgs) Write

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

type ConcatReply

type ConcatReply struct {
	Value string `thrift:"value,1" json:"value"`
}
var ConcatResult_Success_DEFAULT *ConcatReply

func NewConcatReply

func NewConcatReply() *ConcatReply

func (*ConcatReply) GetValue

func (p *ConcatReply) GetValue() string

func (*ConcatReply) Read

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

func (*ConcatReply) ReadField1

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

func (*ConcatReply) String

func (p *ConcatReply) String() string

func (*ConcatReply) Write

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

type ConcatResult

type ConcatResult struct {
	Success *ConcatReply `thrift:"success,0" json:"success"`
}

func NewConcatResult

func NewConcatResult() *ConcatResult

func (*ConcatResult) GetSuccess

func (p *ConcatResult) GetSuccess() *ConcatReply

func (*ConcatResult) IsSetSuccess

func (p *ConcatResult) IsSetSuccess() bool

func (*ConcatResult) Read

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

func (*ConcatResult) ReadField0

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

func (*ConcatResult) String

func (p *ConcatResult) String() string

func (*ConcatResult) Write

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

type SumArgs

type SumArgs struct {
	A int64 `thrift:"a,1" json:"a"`
	B int64 `thrift:"b,2" json:"b"`
}

func NewSumArgs

func NewSumArgs() *SumArgs

func (*SumArgs) GetA

func (p *SumArgs) GetA() int64

func (*SumArgs) GetB

func (p *SumArgs) GetB() int64

func (*SumArgs) Read

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

func (*SumArgs) ReadField1

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

func (*SumArgs) ReadField2

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

func (*SumArgs) String

func (p *SumArgs) String() string

func (*SumArgs) Write

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

type SumReply

type SumReply struct {
	Value int64 `thrift:"value,1" json:"value"`
}
var SumResult_Success_DEFAULT *SumReply

func NewSumReply

func NewSumReply() *SumReply

func (*SumReply) GetValue

func (p *SumReply) GetValue() int64

func (*SumReply) Read

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

func (*SumReply) ReadField1

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

func (*SumReply) String

func (p *SumReply) String() string

func (*SumReply) Write

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

type SumResult

type SumResult struct {
	Success *SumReply `thrift:"success,0" json:"success"`
}

func NewSumResult

func NewSumResult() *SumResult

func (*SumResult) GetSuccess

func (p *SumResult) GetSuccess() *SumReply

func (*SumResult) IsSetSuccess

func (p *SumResult) IsSetSuccess() bool

func (*SumResult) Read

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

func (*SumResult) ReadField0

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

func (*SumResult) String

func (p *SumResult) String() string

func (*SumResult) Write

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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