add

package
v0.0.0-...-b7b95ff Latest Latest
Warning

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

Go to latest
Published: May 28, 2016 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 AddServiceConcatArgs

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

Attributes:

  • A
  • B

func NewAddServiceConcatArgs

func NewAddServiceConcatArgs() *AddServiceConcatArgs

func (*AddServiceConcatArgs) GetA

func (p *AddServiceConcatArgs) GetA() string

func (*AddServiceConcatArgs) GetB

func (p *AddServiceConcatArgs) GetB() string

func (*AddServiceConcatArgs) Read

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

func (*AddServiceConcatArgs) String

func (p *AddServiceConcatArgs) String() string

func (*AddServiceConcatArgs) Write

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

type AddServiceConcatResult

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

Attributes:

  • Success

func NewAddServiceConcatResult

func NewAddServiceConcatResult() *AddServiceConcatResult

func (*AddServiceConcatResult) GetSuccess

func (p *AddServiceConcatResult) GetSuccess() *ConcatReply

func (*AddServiceConcatResult) IsSetSuccess

func (p *AddServiceConcatResult) IsSetSuccess() bool

func (*AddServiceConcatResult) Read

func (*AddServiceConcatResult) String

func (p *AddServiceConcatResult) String() string

func (*AddServiceConcatResult) Write

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

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 AddServiceSumArgs

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

Attributes:

  • A
  • B

func NewAddServiceSumArgs

func NewAddServiceSumArgs() *AddServiceSumArgs

func (*AddServiceSumArgs) GetA

func (p *AddServiceSumArgs) GetA() int64

func (*AddServiceSumArgs) GetB

func (p *AddServiceSumArgs) GetB() int64

func (*AddServiceSumArgs) Read

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

func (*AddServiceSumArgs) String

func (p *AddServiceSumArgs) String() string

func (*AddServiceSumArgs) Write

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

type AddServiceSumResult

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

Attributes:

  • Success

func NewAddServiceSumResult

func NewAddServiceSumResult() *AddServiceSumResult

func (*AddServiceSumResult) GetSuccess

func (p *AddServiceSumResult) GetSuccess() *SumReply

func (*AddServiceSumResult) IsSetSuccess

func (p *AddServiceSumResult) IsSetSuccess() bool

func (*AddServiceSumResult) Read

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

func (*AddServiceSumResult) String

func (p *AddServiceSumResult) String() string

func (*AddServiceSumResult) Write

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

type ConcatReply

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

Attributes:

  • Value
var AddServiceConcatResult_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) String

func (p *ConcatReply) String() string

func (*ConcatReply) Write

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

type SumReply

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

Attributes:

  • Value
var AddServiceSumResult_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) String

func (p *SumReply) String() string

func (*SumReply) Write

func (p *SumReply) 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