kit: github.com/go-kit/kit/examples/addsvc/thrift/gen-go/addsvc Index | Files | Directories

package addsvc

import "github.com/go-kit/kit/examples/addsvc/thrift/gen-go/addsvc"

Index

Package Files

GoUnusedProtection__.go addsvc-consts.go addsvc.go

Variables

var GoUnusedProtection__ int

type AddService Uses

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 Uses

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

func NewAddServiceClient Uses

func NewAddServiceClient(c thrift.TClient) *AddServiceClient

func NewAddServiceClientFactory Uses

func NewAddServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *AddServiceClient

Deprecated: Use NewAddService instead

func NewAddServiceClientProtocol Uses

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

Deprecated: Use NewAddService instead

func (*AddServiceClient) Concat Uses

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

Parameters:

- A
- B

func (*AddServiceClient) Sum Uses

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

Parameters:

- A
- B

type AddServiceConcatArgs Uses

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 Uses

func NewAddServiceConcatArgs() *AddServiceConcatArgs

func (*AddServiceConcatArgs) GetA Uses

func (p *AddServiceConcatArgs) GetA() string

func (*AddServiceConcatArgs) GetB Uses

func (p *AddServiceConcatArgs) GetB() string

func (*AddServiceConcatArgs) Read Uses

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

func (*AddServiceConcatArgs) ReadField1 Uses

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

func (*AddServiceConcatArgs) ReadField2 Uses

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

func (*AddServiceConcatArgs) String Uses

func (p *AddServiceConcatArgs) String() string

func (*AddServiceConcatArgs) Write Uses

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

type AddServiceConcatResult Uses

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

Attributes:

- Success

func NewAddServiceConcatResult Uses

func NewAddServiceConcatResult() *AddServiceConcatResult

func (*AddServiceConcatResult) GetSuccess Uses

func (p *AddServiceConcatResult) GetSuccess() *ConcatReply

func (*AddServiceConcatResult) IsSetSuccess Uses

func (p *AddServiceConcatResult) IsSetSuccess() bool

func (*AddServiceConcatResult) Read Uses

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

func (*AddServiceConcatResult) ReadField0 Uses

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

func (*AddServiceConcatResult) String Uses

func (p *AddServiceConcatResult) String() string

func (*AddServiceConcatResult) Write Uses

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

type AddServiceProcessor Uses

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

func NewAddServiceProcessor Uses

func NewAddServiceProcessor(handler AddService) *AddServiceProcessor

func (*AddServiceProcessor) AddToProcessorMap Uses

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

func (*AddServiceProcessor) GetProcessorFunction Uses

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

func (*AddServiceProcessor) Process Uses

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

func (*AddServiceProcessor) ProcessorMap Uses

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

type AddServiceSumArgs Uses

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 Uses

func NewAddServiceSumArgs() *AddServiceSumArgs

func (*AddServiceSumArgs) GetA Uses

func (p *AddServiceSumArgs) GetA() int64

func (*AddServiceSumArgs) GetB Uses

func (p *AddServiceSumArgs) GetB() int64

func (*AddServiceSumArgs) Read Uses

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

func (*AddServiceSumArgs) ReadField1 Uses

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

func (*AddServiceSumArgs) ReadField2 Uses

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

func (*AddServiceSumArgs) String Uses

func (p *AddServiceSumArgs) String() string

func (*AddServiceSumArgs) Write Uses

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

type AddServiceSumResult Uses

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

Attributes:

- Success

func NewAddServiceSumResult Uses

func NewAddServiceSumResult() *AddServiceSumResult

func (*AddServiceSumResult) GetSuccess Uses

func (p *AddServiceSumResult) GetSuccess() *SumReply

func (*AddServiceSumResult) IsSetSuccess Uses

func (p *AddServiceSumResult) IsSetSuccess() bool

func (*AddServiceSumResult) Read Uses

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

func (*AddServiceSumResult) ReadField0 Uses

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

func (*AddServiceSumResult) String Uses

func (p *AddServiceSumResult) String() string

func (*AddServiceSumResult) Write Uses

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

type ConcatReply Uses

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 Uses

func NewConcatReply() *ConcatReply

func (*ConcatReply) GetErr Uses

func (p *ConcatReply) GetErr() string

func (*ConcatReply) GetValue Uses

func (p *ConcatReply) GetValue() string

func (*ConcatReply) Read Uses

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

func (*ConcatReply) ReadField1 Uses

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

func (*ConcatReply) ReadField2 Uses

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

func (*ConcatReply) String Uses

func (p *ConcatReply) String() string

func (*ConcatReply) Write Uses

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

type SumReply Uses

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 Uses

func NewSumReply() *SumReply

func (*SumReply) GetErr Uses

func (p *SumReply) GetErr() string

func (*SumReply) GetValue Uses

func (p *SumReply) GetValue() int64

func (*SumReply) Read Uses

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

func (*SumReply) ReadField1 Uses

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

func (*SumReply) ReadField2 Uses

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

func (*SumReply) String Uses

func (p *SumReply) String() string

func (*SumReply) Write Uses

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

Directories

PathSynopsis
add_service-remote

Package addsvc imports 5 packages (graph) and is imported by 5 packages. Updated 2017-11-13. Refresh now. Tools for package owners.