add

package
v0.0.0-...-6939b5c Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 AddArgs

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

func NewAddArgs

func NewAddArgs() *AddArgs

func (*AddArgs) GetA

func (p *AddArgs) GetA() int64

func (*AddArgs) GetB

func (p *AddArgs) GetB() int64

func (*AddArgs) Read

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

func (*AddArgs) ReadField1

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

func (*AddArgs) ReadField2

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

func (*AddArgs) String

func (p *AddArgs) String() string

func (*AddArgs) Write

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

type AddReply

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

func NewAddReply

func NewAddReply() *AddReply

func (*AddReply) GetValue

func (p *AddReply) GetValue() int64

func (*AddReply) Read

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

func (*AddReply) ReadField1

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

func (*AddReply) String

func (p *AddReply) String() string

func (*AddReply) Write

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

type AddResult

type AddResult struct {
	Success *AddReply `thrift:"success,0" json:"success"`
}

func NewAddResult

func NewAddResult() *AddResult

func (*AddResult) GetSuccess

func (p *AddResult) GetSuccess() *AddReply

func (*AddResult) IsSetSuccess

func (p *AddResult) IsSetSuccess() bool

func (*AddResult) Read

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

func (*AddResult) ReadField0

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

func (*AddResult) String

func (p *AddResult) String() string

func (*AddResult) Write

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

type AddService

type AddService interface {
	// Parameters:
	//  - A
	//  - B
	Add(a int64, b int64) (r *AddReply, 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) Add

func (p *AddServiceClient) Add(a int64, b int64) (r *AddReply, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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