echoservice

package
v0.0.0-...-9212df6 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var BidiSideStreamingArgs_Req_DEFAULT *echo.Request
View Source
var BidiSideStreamingResult_Success_DEFAULT *echo.Response
View Source
var ClientSideStreamingArgs_Req_DEFAULT *echo.Request
View Source
var ClientSideStreamingResult_Success_DEFAULT *echo.Response
View Source
var ServerSideStreamingArgs_Req_DEFAULT *echo.Request
View Source
var ServerSideStreamingResult_Success_DEFAULT *echo.Response

Functions

func NewInvoker

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

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

func NewServer

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

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

Types

type BidiSideStreamingArgs

type BidiSideStreamingArgs struct {
	Req *echo.Request
}

func (*BidiSideStreamingArgs) GetReq

func (p *BidiSideStreamingArgs) GetReq() *echo.Request

func (*BidiSideStreamingArgs) IsSetReq

func (p *BidiSideStreamingArgs) IsSetReq() bool

func (*BidiSideStreamingArgs) Marshal

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

func (*BidiSideStreamingArgs) Unmarshal

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

type BidiSideStreamingResult

type BidiSideStreamingResult struct {
	Success *echo.Response
}

func (*BidiSideStreamingResult) GetSuccess

func (p *BidiSideStreamingResult) GetSuccess() *echo.Response

func (*BidiSideStreamingResult) IsSetSuccess

func (p *BidiSideStreamingResult) IsSetSuccess() bool

func (*BidiSideStreamingResult) Marshal

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

func (*BidiSideStreamingResult) SetSuccess

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

func (*BidiSideStreamingResult) Unmarshal

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

type Client

type Client interface {
	ClientSideStreaming(ctx context.Context, callOptions ...callopt.Option) (stream EchoService_ClientSideStreamingClient, err error)
	ServerSideStreaming(ctx context.Context, Req *echo.Request, callOptions ...callopt.Option) (stream EchoService_ServerSideStreamingClient, err error)
	BidiSideStreaming(ctx context.Context, callOptions ...callopt.Option) (stream EchoService_BidiSideStreamingClient, 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 ClientSideStreamingArgs

type ClientSideStreamingArgs struct {
	Req *echo.Request
}

func (*ClientSideStreamingArgs) GetReq

func (p *ClientSideStreamingArgs) GetReq() *echo.Request

func (*ClientSideStreamingArgs) IsSetReq

func (p *ClientSideStreamingArgs) IsSetReq() bool

func (*ClientSideStreamingArgs) Marshal

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

func (*ClientSideStreamingArgs) Unmarshal

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

type ClientSideStreamingResult

type ClientSideStreamingResult struct {
	Success *echo.Response
}

func (*ClientSideStreamingResult) GetSuccess

func (p *ClientSideStreamingResult) GetSuccess() *echo.Response

func (*ClientSideStreamingResult) IsSetSuccess

func (p *ClientSideStreamingResult) IsSetSuccess() bool

func (*ClientSideStreamingResult) Marshal

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

func (*ClientSideStreamingResult) SetSuccess

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

func (*ClientSideStreamingResult) Unmarshal

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

type EchoService_BidiSideStreamingClient

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

type EchoService_ClientSideStreamingClient

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

type EchoService_ServerSideStreamingClient

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

type ServerSideStreamingArgs

type ServerSideStreamingArgs struct {
	Req *echo.Request
}

func (*ServerSideStreamingArgs) GetReq

func (p *ServerSideStreamingArgs) GetReq() *echo.Request

func (*ServerSideStreamingArgs) IsSetReq

func (p *ServerSideStreamingArgs) IsSetReq() bool

func (*ServerSideStreamingArgs) Marshal

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

func (*ServerSideStreamingArgs) Unmarshal

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

type ServerSideStreamingResult

type ServerSideStreamingResult struct {
	Success *echo.Response
}

func (*ServerSideStreamingResult) GetSuccess

func (p *ServerSideStreamingResult) GetSuccess() *echo.Response

func (*ServerSideStreamingResult) IsSetSuccess

func (p *ServerSideStreamingResult) IsSetSuccess() bool

func (*ServerSideStreamingResult) Marshal

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

func (*ServerSideStreamingResult) SetSuccess

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

func (*ServerSideStreamingResult) Unmarshal

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

Jump to

Keyboard shortcuts

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