serviceb

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 ChatBArgs_Req_DEFAULT *service.RequestB
View Source
var ChatBResult_Success_DEFAULT *service.Reply

Functions

func NewInvoker

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

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

func NewServer

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

Types

type ChatBArgs

type ChatBArgs struct {
	Req *service.RequestB
}

func (*ChatBArgs) FastRead

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

func (*ChatBArgs) FastWrite

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

func (*ChatBArgs) GetFirstArgument

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

func (*ChatBArgs) GetReq

func (p *ChatBArgs) GetReq() *service.RequestB

func (*ChatBArgs) IsSetReq

func (p *ChatBArgs) IsSetReq() bool

func (*ChatBArgs) Marshal

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

func (*ChatBArgs) Size

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

func (*ChatBArgs) Unmarshal

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

type ChatBResult

type ChatBResult struct {
	Success *service.Reply
}

func (*ChatBResult) FastRead

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

func (*ChatBResult) FastWrite

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

func (*ChatBResult) GetResult

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

func (*ChatBResult) GetSuccess

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

func (*ChatBResult) IsSetSuccess

func (p *ChatBResult) IsSetSuccess() bool

func (*ChatBResult) Marshal

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

func (*ChatBResult) SetSuccess

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

func (*ChatBResult) Size

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

func (*ChatBResult) Unmarshal

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

type Client

type Client interface {
	ChatB(ctx context.Context, Req *service.RequestB, 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