chatservice

package
v0.0.0-...-48d44df Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var CreateMessageArgs_Req_DEFAULT *chat_rpc.RPCMessageCreateReq
View Source
var CreateMessageResult_Success_DEFAULT *chat_rpc.RPCMessageCreateResp
View Source
var FriendListArgs_Req_DEFAULT *chat_rpc.RPCFriendListReq
View Source
var FriendListResult_Success_DEFAULT *chat_rpc.RPCFriendListResp
View Source
var MessageListArgs_Req_DEFAULT *chat_rpc.RPCMessageChatReq
View Source
var MessageListResult_Success_DEFAULT *chat_rpc.RPCMessageChatResp

Functions

func NewInvoker

func NewInvoker(handler chat_rpc.ChatService, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler chat_rpc.ChatService, opts ...server.Option) server.Server

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

func NewServiceInfo

func NewServiceInfo() *kitex.ServiceInfo

Types

type Client

type Client interface {
	FriendList(ctx context.Context, Req *chat_rpc.RPCFriendListReq, callOptions ...callopt.Option) (r *chat_rpc.RPCFriendListResp, err error)
	CreateMessage(ctx context.Context, Req *chat_rpc.RPCMessageCreateReq, callOptions ...callopt.Option) (r *chat_rpc.RPCMessageCreateResp, err error)
	MessageList(ctx context.Context, Req *chat_rpc.RPCMessageChatReq, callOptions ...callopt.Option) (r *chat_rpc.RPCMessageChatResp, 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 CreateMessageArgs

type CreateMessageArgs struct {
	Req *chat_rpc.RPCMessageCreateReq
}

func (*CreateMessageArgs) FastRead

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

func (*CreateMessageArgs) FastWrite

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

func (*CreateMessageArgs) GetReq

func (*CreateMessageArgs) IsSetReq

func (p *CreateMessageArgs) IsSetReq() bool

func (*CreateMessageArgs) Marshal

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

func (*CreateMessageArgs) Size

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

func (*CreateMessageArgs) Unmarshal

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

type CreateMessageResult

type CreateMessageResult struct {
	Success *chat_rpc.RPCMessageCreateResp
}

func (*CreateMessageResult) FastRead

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

func (*CreateMessageResult) FastWrite

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

func (*CreateMessageResult) GetSuccess

func (*CreateMessageResult) IsSetSuccess

func (p *CreateMessageResult) IsSetSuccess() bool

func (*CreateMessageResult) Marshal

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

func (*CreateMessageResult) SetSuccess

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

func (*CreateMessageResult) Size

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

func (*CreateMessageResult) Unmarshal

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

type FriendListArgs

type FriendListArgs struct {
	Req *chat_rpc.RPCFriendListReq
}

func (*FriendListArgs) FastRead

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

func (*FriendListArgs) FastWrite

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

func (*FriendListArgs) GetReq

func (*FriendListArgs) IsSetReq

func (p *FriendListArgs) IsSetReq() bool

func (*FriendListArgs) Marshal

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

func (*FriendListArgs) Size

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

func (*FriendListArgs) Unmarshal

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

type FriendListResult

type FriendListResult struct {
	Success *chat_rpc.RPCFriendListResp
}

func (*FriendListResult) FastRead

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

func (*FriendListResult) FastWrite

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

func (*FriendListResult) GetSuccess

func (p *FriendListResult) GetSuccess() *chat_rpc.RPCFriendListResp

func (*FriendListResult) IsSetSuccess

func (p *FriendListResult) IsSetSuccess() bool

func (*FriendListResult) Marshal

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

func (*FriendListResult) SetSuccess

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

func (*FriendListResult) Size

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

func (*FriendListResult) Unmarshal

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

type MessageListArgs

type MessageListArgs struct {
	Req *chat_rpc.RPCMessageChatReq
}

func (*MessageListArgs) FastRead

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

func (*MessageListArgs) FastWrite

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

func (*MessageListArgs) GetReq

func (*MessageListArgs) IsSetReq

func (p *MessageListArgs) IsSetReq() bool

func (*MessageListArgs) Marshal

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

func (*MessageListArgs) Size

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

func (*MessageListArgs) Unmarshal

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

type MessageListResult

type MessageListResult struct {
	Success *chat_rpc.RPCMessageChatResp
}

func (*MessageListResult) FastRead

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

func (*MessageListResult) FastWrite

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

func (*MessageListResult) GetSuccess

func (*MessageListResult) IsSetSuccess

func (p *MessageListResult) IsSetSuccess() bool

func (*MessageListResult) Marshal

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

func (*MessageListResult) SetSuccess

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

func (*MessageListResult) Size

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

func (*MessageListResult) Unmarshal

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

Jump to

Keyboard shortcuts

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