servicea

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var ChatArgs_Req_DEFAULT *grpcproxy.Request
View Source
var ChatResult_Success_DEFAULT *grpcproxy.Reply

Functions

func NewInvoker

func NewInvoker(handler grpcproxy.ServiceA, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler grpcproxy.ServiceA, opts ...server.Option) server.Server

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

func NewServiceInfo

func NewServiceInfo() *kitex.ServiceInfo

Types

type ChatArgs

type ChatArgs struct {
	Req *grpcproxy.Request
}

func (*ChatArgs) GetReq

func (p *ChatArgs) GetReq() *grpcproxy.Request

func (*ChatArgs) IsSetReq

func (p *ChatArgs) IsSetReq() bool

func (*ChatArgs) Marshal

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

func (*ChatArgs) Unmarshal

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

type ChatResult

type ChatResult struct {
	Success *grpcproxy.Reply
}

func (*ChatResult) GetSuccess

func (p *ChatResult) GetSuccess() *grpcproxy.Reply

func (*ChatResult) IsSetSuccess

func (p *ChatResult) IsSetSuccess() bool

func (*ChatResult) Marshal

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

func (*ChatResult) SetSuccess

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

func (*ChatResult) Unmarshal

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

type Client

type Client interface {
	Chat(ctx context.Context, callOptions ...callopt.Option) (stream ServiceA_ChatClient, 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 ServiceA_ChatClient

type ServiceA_ChatClient interface {
	streaming.Stream
	Send(*grpcproxy.Request) error
	Recv() (*grpcproxy.Reply, error)
}

Jump to

Keyboard shortcuts

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