servicea

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: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var ChatAArgs_Req_DEFAULT *service.RequestA
View Source
var ChatAResult_Success_DEFAULT *service.Reply

Functions

func NewInvoker

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

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

func NewServer

func NewServer(handler service.ServiceA, 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 service.ServiceA, opts ...server.RegisterOption) error

Types

type ChatAArgs

type ChatAArgs struct {
	Req *service.RequestA
}

func (*ChatAArgs) FastRead

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

func (*ChatAArgs) FastWrite

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

func (*ChatAArgs) GetFirstArgument

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

func (*ChatAArgs) GetReq

func (p *ChatAArgs) GetReq() *service.RequestA

func (*ChatAArgs) IsSetReq

func (p *ChatAArgs) IsSetReq() bool

func (*ChatAArgs) Marshal

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

func (*ChatAArgs) Size

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

func (*ChatAArgs) Unmarshal

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

type ChatAResult

type ChatAResult struct {
	Success *service.Reply
}

func (*ChatAResult) FastRead

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

func (*ChatAResult) FastWrite

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

func (*ChatAResult) GetResult

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

func (*ChatAResult) GetSuccess

func (p *ChatAResult) GetSuccess() *service.Reply

func (*ChatAResult) IsSetSuccess

func (p *ChatAResult) IsSetSuccess() bool

func (*ChatAResult) Marshal

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

func (*ChatAResult) SetSuccess

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

func (*ChatAResult) Size

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

func (*ChatAResult) Unmarshal

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

type Client

type Client interface {
	ChatA(ctx context.Context, Req *service.RequestA, callOptions ...callopt.Option) (r *service.Reply, 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