paymentservice

package
v0.0.0-...-978cf5a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Code generated by Kitex v0.8.0. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var ChargeArgs_Req_DEFAULT *payment.ChargeReq
View Source
var ChargeResult_Success_DEFAULT *payment.ChargeResp

Functions

func NewInvoker

func NewInvoker(handler payment.PaymentService, opts ...server.Option) server.Invoker

NewInvoker creates a server.Invoker with the given handler and options.

func NewServer

func NewServer(handler payment.PaymentService, opts ...server.Option) server.Server

NewServer creates a server.Server with the given handler and options.

func NewServiceInfo

func NewServiceInfo() *kitex.ServiceInfo

Types

type ChargeArgs

type ChargeArgs struct {
	Req *payment.ChargeReq
}

func (*ChargeArgs) FastRead

func (p *ChargeArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*ChargeArgs) FastWrite

func (p *ChargeArgs) FastWrite(buf []byte) (n int)

func (*ChargeArgs) GetFirstArgument

func (p *ChargeArgs) GetFirstArgument() interface{}

func (*ChargeArgs) GetReq

func (p *ChargeArgs) GetReq() *payment.ChargeReq

func (*ChargeArgs) IsSetReq

func (p *ChargeArgs) IsSetReq() bool

func (*ChargeArgs) Marshal

func (p *ChargeArgs) Marshal(out []byte) ([]byte, error)

func (*ChargeArgs) Size

func (p *ChargeArgs) Size() (n int)

func (*ChargeArgs) Unmarshal

func (p *ChargeArgs) Unmarshal(in []byte) error

type ChargeResult

type ChargeResult struct {
	Success *payment.ChargeResp
}

func (*ChargeResult) FastRead

func (p *ChargeResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*ChargeResult) FastWrite

func (p *ChargeResult) FastWrite(buf []byte) (n int)

func (*ChargeResult) GetResult

func (p *ChargeResult) GetResult() interface{}

func (*ChargeResult) GetSuccess

func (p *ChargeResult) GetSuccess() *payment.ChargeResp

func (*ChargeResult) IsSetSuccess

func (p *ChargeResult) IsSetSuccess() bool

func (*ChargeResult) Marshal

func (p *ChargeResult) Marshal(out []byte) ([]byte, error)

func (*ChargeResult) SetSuccess

func (p *ChargeResult) SetSuccess(x interface{})

func (*ChargeResult) Size

func (p *ChargeResult) Size() (n int)

func (*ChargeResult) Unmarshal

func (p *ChargeResult) Unmarshal(in []byte) error

type Client

type Client interface {
	Charge(ctx context.Context, Req *payment.ChargeReq, callOptions ...callopt.Option) (r *payment.ChargeResp, err error)
}

Client is designed to provide IDL-compatible methods with call-option parameter for kitex framework.

func MustNewClient

func MustNewClient(destService string, opts ...client.Option) Client

MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.

func NewClient

func NewClient(destService string, opts ...client.Option) (Client, error)

NewClient creates a client for the service defined in IDL.

Jump to

Keyboard shortcuts

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