testservice

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInvoker

func NewInvoker(handler echo.TestService, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler echo.TestService, opts ...server.Option) server.Server

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

func NewServiceInfo

func NewServiceInfo() *kitex.ServiceInfo

NewServiceInfo creates a new ServiceInfo containing all methods

func NewServiceInfoForClient

func NewServiceInfoForClient() *kitex.ServiceInfo

NewServiceInfo creates a new ServiceInfo containing non-streaming methods

func NewServiceInfoForStreamClient

func NewServiceInfoForStreamClient() *kitex.ServiceInfo

func RegisterService

func RegisterService(svr server.Server, handler echo.TestService, opts ...server.RegisterOption) error

Types

type Client

type Client interface {
	EchoPingPong(ctx context.Context, req *echo.Request, callOptions ...callopt.Option) (r *echo.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 StreamClient

type StreamClient interface {
	Echo(ctx context.Context, callOptions ...streamcall.Option) (stream TestService_EchoClient, err error)
	EchoClient(ctx context.Context, callOptions ...streamcall.Option) (stream TestService_EchoClientClient, err error)
	EchoServer(ctx context.Context, req *echo.Request, callOptions ...streamcall.Option) (stream TestService_EchoServerClient, err error)
	EchoUnary(ctx context.Context, req *echo.Request, callOptions ...streamcall.Option) (r *echo.Response, err error)
}

StreamClient is designed to provide Interface for Streaming APIs.

func MustNewStreamClient

func MustNewStreamClient(destService string, opts ...streamclient.Option) StreamClient

MustNewStreamClient creates a stream client for the service's streaming APIs defined in IDL. It panics if any error occurs.

func NewStreamClient

func NewStreamClient(destService string, opts ...streamclient.Option) (StreamClient, error)

NewStreamClient creates a stream client for the service's streaming APIs defined in IDL.

type TestService_EchoClient

type TestService_EchoClient interface {
	streaming.Stream
	Send(*echo.Request) error
	Recv() (*echo.Response, error)
}

type TestService_EchoClientClient

type TestService_EchoClientClient interface {
	streaming.Stream
	Send(*echo.Request) error
	CloseAndRecv() (*echo.Response, error)
}

type TestService_EchoServerClient

type TestService_EchoServerClient interface {
	streaming.Stream
	Recv() (*echo.Response, error)
}

Jump to

Keyboard shortcuts

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