messageservice

package
v0.0.0-...-966fd63 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT 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 MessageActionArgs_Req_DEFAULT *message.MessageActionRequest
View Source
var MessageActionResult_Success_DEFAULT *message.MessageActionResponse
View Source
var MessageChatArgs_Req_DEFAULT *message.MessageChatRequest
View Source
var MessageChatResult_Success_DEFAULT *message.MessageChatResponse

Functions

func NewInvoker

func NewInvoker(handler message.MessageService, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler message.MessageService, 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 {
	MessageChat(ctx context.Context, Req *message.MessageChatRequest, callOptions ...callopt.Option) (r *message.MessageChatResponse, err error)
	MessageAction(ctx context.Context, Req *message.MessageActionRequest, callOptions ...callopt.Option) (r *message.MessageActionResponse, 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 MessageActionArgs

type MessageActionArgs struct {
	Req *message.MessageActionRequest
}

func (*MessageActionArgs) FastRead

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

func (*MessageActionArgs) FastWrite

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

func (*MessageActionArgs) GetReq

func (*MessageActionArgs) IsSetReq

func (p *MessageActionArgs) IsSetReq() bool

func (*MessageActionArgs) Marshal

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

func (*MessageActionArgs) Size

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

func (*MessageActionArgs) Unmarshal

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

type MessageActionResult

type MessageActionResult struct {
	Success *message.MessageActionResponse
}

func (*MessageActionResult) FastRead

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

func (*MessageActionResult) FastWrite

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

func (*MessageActionResult) GetSuccess

func (*MessageActionResult) IsSetSuccess

func (p *MessageActionResult) IsSetSuccess() bool

func (*MessageActionResult) Marshal

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

func (*MessageActionResult) SetSuccess

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

func (*MessageActionResult) Size

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

func (*MessageActionResult) Unmarshal

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

type MessageChatArgs

type MessageChatArgs struct {
	Req *message.MessageChatRequest
}

func (*MessageChatArgs) FastRead

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

func (*MessageChatArgs) FastWrite

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

func (*MessageChatArgs) GetReq

func (*MessageChatArgs) IsSetReq

func (p *MessageChatArgs) IsSetReq() bool

func (*MessageChatArgs) Marshal

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

func (*MessageChatArgs) Size

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

func (*MessageChatArgs) Unmarshal

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

type MessageChatResult

type MessageChatResult struct {
	Success *message.MessageChatResponse
}

func (*MessageChatResult) FastRead

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

func (*MessageChatResult) FastWrite

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

func (*MessageChatResult) GetSuccess

func (*MessageChatResult) IsSetSuccess

func (p *MessageChatResult) IsSetSuccess() bool

func (*MessageChatResult) Marshal

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

func (*MessageChatResult) SetSuccess

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

func (*MessageChatResult) Size

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

func (*MessageChatResult) Unmarshal

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

Jump to

Keyboard shortcuts

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