echo

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var EchoArgs_Req_DEFAULT *pbapi.Request
View Source
var EchoResult_Success_DEFAULT *pbapi.Response

Functions

func NewInvoker

func NewInvoker(handler pbapi.Echo, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler pbapi.Echo, opts ...server.Option) server.Server

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

func NewServiceInfo added in v0.2.1

func NewServiceInfo() *kitex.ServiceInfo

NewServiceInfo creates a new ServiceInfo containing all methods

func NewServiceInfoForClient added in v0.4.0

func NewServiceInfoForClient() *kitex.ServiceInfo

NewServiceInfo creates a new ServiceInfo containing non-streaming methods

func NewServiceInfoForStreamClient added in v0.4.0

func NewServiceInfoForStreamClient() *kitex.ServiceInfo

func RegisterService added in v0.4.0

func RegisterService(svr server.Server, handler pbapi.Echo, opts ...server.RegisterOption) error

Types

type Client

type Client interface {
	Echo(ctx context.Context, Req *pbapi.Request, callOptions ...callopt.Option) (r *pbapi.Response, 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.

type EchoArgs

type EchoArgs struct {
	Req *pbapi.Request
}

func (*EchoArgs) FastRead added in v0.2.1

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

func (*EchoArgs) FastWrite added in v0.2.1

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

func (*EchoArgs) GetFirstArgument added in v0.2.1

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

func (*EchoArgs) GetReq

func (p *EchoArgs) GetReq() *pbapi.Request

func (*EchoArgs) IsSetReq

func (p *EchoArgs) IsSetReq() bool

func (*EchoArgs) Marshal

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

func (*EchoArgs) Size added in v0.2.1

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

func (*EchoArgs) Unmarshal

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

type EchoResult

type EchoResult struct {
	Success *pbapi.Response
}

func (*EchoResult) FastRead added in v0.2.1

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

func (*EchoResult) FastWrite added in v0.2.1

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

func (*EchoResult) GetResult added in v0.2.1

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

func (*EchoResult) GetSuccess

func (p *EchoResult) GetSuccess() *pbapi.Response

func (*EchoResult) IsSetSuccess

func (p *EchoResult) IsSetSuccess() bool

func (*EchoResult) Marshal

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

func (*EchoResult) SetSuccess

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

func (*EchoResult) Size added in v0.2.1

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

func (*EchoResult) Unmarshal

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

Jump to

Keyboard shortcuts

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