addsvc

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 5 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(ctx context.Context, a int64, b int64) (r *SumReply, err error)
	// Parameters:
	//  - A
	//  - B
	Concat(ctx context.Context, a string, b string) (r *ConcatReply, err error)
}

type AddServiceClient

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

func NewAddServiceClient added in v0.7.0

func NewAddServiceClient(c thrift.TClient) *AddServiceClient

func NewAddServiceClientProtocol

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

func (*AddServiceClient) Client_ added in v0.7.0

func (p *AddServiceClient) Client_() thrift.TClient

func (*AddServiceClient) Concat

func (p *AddServiceClient) Concat(ctx context.Context, a string, b string) (r *ConcatReply, err error)

Parameters:

  • A
  • B

func (*AddServiceClient) Sum

func (p *AddServiceClient) Sum(ctx context.Context, a int64, b int64) (r *SumReply, err error)

Parameters:

  • A
  • B

type AddServiceConcatArgs

type AddServiceConcatArgs struct {
	A string `thrift:"a,1" db:"a" json:"a"`
	B string `thrift:"b,2" db:"b" 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) ReadField1 added in v0.6.0

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

func (*AddServiceConcatArgs) ReadField2 added in v0.6.0

func (p *AddServiceConcatArgs) ReadField2(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" db:"success" 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) ReadField0 added in v0.6.0

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

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(ctx context.Context, 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" db:"a" json:"a"`
	B int64 `thrift:"b,2" db:"b" 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) ReadField1 added in v0.6.0

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

func (*AddServiceSumArgs) ReadField2 added in v0.6.0

func (p *AddServiceSumArgs) ReadField2(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" db:"success" 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) ReadField0 added in v0.6.0

func (p *AddServiceSumResult) ReadField0(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" db:"value" json:"value"`
	Err   string `thrift:"err,2" db:"err" json:"err"`
}

Attributes:

  • Value
  • Err
var AddServiceConcatResult_Success_DEFAULT *ConcatReply

func NewConcatReply

func NewConcatReply() *ConcatReply

func (*ConcatReply) GetErr

func (p *ConcatReply) GetErr() string

func (*ConcatReply) GetValue

func (p *ConcatReply) GetValue() string

func (*ConcatReply) Read

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

func (*ConcatReply) ReadField1 added in v0.6.0

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

func (*ConcatReply) ReadField2 added in v0.6.0

func (p *ConcatReply) ReadField2(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" db:"value" json:"value"`
	Err   string `thrift:"err,2" db:"err" json:"err"`
}

Attributes:

  • Value
  • Err
var AddServiceSumResult_Success_DEFAULT *SumReply

func NewSumReply

func NewSumReply() *SumReply

func (*SumReply) GetErr

func (p *SumReply) GetErr() string

func (*SumReply) GetValue

func (p *SumReply) GetValue() int64

func (*SumReply) Read

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

func (*SumReply) ReadField1 added in v0.6.0

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

func (*SumReply) ReadField2 added in v0.6.0

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