commentservice

package
v0.0.0-...-dfc68d5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var CommentListArgs_Req_DEFAULT *comment.CommentListRequest
View Source
var CommentListResult_Success_DEFAULT *comment.CommentListResponse
View Source
var CreateCommentArgs_Req_DEFAULT *comment.CreateCommentRequest
View Source
var CreateCommentResult_Success_DEFAULT *comment.CreateCommentResponse
View Source
var DeleteCommentArgs_Req_DEFAULT *comment.DeleteCommentRequest
View Source
var DeleteCommentResult_Success_DEFAULT *comment.DeleteCommentResponse

Functions

func NewInvoker

func NewInvoker(handler comment.CommentService, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler comment.CommentService, 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 {
	CreateComment(ctx context.Context, Req *comment.CreateCommentRequest, callOptions ...callopt.Option) (r *comment.CreateCommentResponse, err error)
	DeleteComment(ctx context.Context, Req *comment.DeleteCommentRequest, callOptions ...callopt.Option) (r *comment.DeleteCommentResponse, err error)
	CommentList(ctx context.Context, Req *comment.CommentListRequest, callOptions ...callopt.Option) (r *comment.CommentListResponse, 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 CommentListArgs

type CommentListArgs struct {
	Req *comment.CommentListRequest
}

func (*CommentListArgs) FastRead

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

func (*CommentListArgs) FastWrite

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

func (*CommentListArgs) GetReq

func (*CommentListArgs) IsSetReq

func (p *CommentListArgs) IsSetReq() bool

func (*CommentListArgs) Marshal

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

func (*CommentListArgs) Size

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

func (*CommentListArgs) Unmarshal

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

type CommentListResult

type CommentListResult struct {
	Success *comment.CommentListResponse
}

func (*CommentListResult) FastRead

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

func (*CommentListResult) FastWrite

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

func (*CommentListResult) GetSuccess

func (*CommentListResult) IsSetSuccess

func (p *CommentListResult) IsSetSuccess() bool

func (*CommentListResult) Marshal

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

func (*CommentListResult) SetSuccess

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

func (*CommentListResult) Size

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

func (*CommentListResult) Unmarshal

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

type CreateCommentArgs

type CreateCommentArgs struct {
	Req *comment.CreateCommentRequest
}

func (*CreateCommentArgs) FastRead

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

func (*CreateCommentArgs) FastWrite

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

func (*CreateCommentArgs) GetReq

func (*CreateCommentArgs) IsSetReq

func (p *CreateCommentArgs) IsSetReq() bool

func (*CreateCommentArgs) Marshal

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

func (*CreateCommentArgs) Size

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

func (*CreateCommentArgs) Unmarshal

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

type CreateCommentResult

type CreateCommentResult struct {
	Success *comment.CreateCommentResponse
}

func (*CreateCommentResult) FastRead

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

func (*CreateCommentResult) FastWrite

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

func (*CreateCommentResult) GetSuccess

func (*CreateCommentResult) IsSetSuccess

func (p *CreateCommentResult) IsSetSuccess() bool

func (*CreateCommentResult) Marshal

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

func (*CreateCommentResult) SetSuccess

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

func (*CreateCommentResult) Size

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

func (*CreateCommentResult) Unmarshal

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

type DeleteCommentArgs

type DeleteCommentArgs struct {
	Req *comment.DeleteCommentRequest
}

func (*DeleteCommentArgs) FastRead

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

func (*DeleteCommentArgs) FastWrite

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

func (*DeleteCommentArgs) GetReq

func (*DeleteCommentArgs) IsSetReq

func (p *DeleteCommentArgs) IsSetReq() bool

func (*DeleteCommentArgs) Marshal

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

func (*DeleteCommentArgs) Size

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

func (*DeleteCommentArgs) Unmarshal

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

type DeleteCommentResult

type DeleteCommentResult struct {
	Success *comment.DeleteCommentResponse
}

func (*DeleteCommentResult) FastRead

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

func (*DeleteCommentResult) FastWrite

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

func (*DeleteCommentResult) GetSuccess

func (*DeleteCommentResult) IsSetSuccess

func (p *DeleteCommentResult) IsSetSuccess() bool

func (*DeleteCommentResult) Marshal

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

func (*DeleteCommentResult) SetSuccess

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

func (*DeleteCommentResult) Size

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

func (*DeleteCommentResult) Unmarshal

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

Jump to

Keyboard shortcuts

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