commentservice

package
v0.0.0-...-312508d Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: GPL-2.0 Imports: 9 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var CountCommentByParentArgs_Req_DEFAULT *comment.CountCommentByParentReq
View Source
var CountCommentByParentResult_Success_DEFAULT *comment.CountCommentByParentResp
View Source
var CreateCommentArgs_Req_DEFAULT *comment.CreateCommentReq
View Source
var CreateCommentResult_Success_DEFAULT *comment.CreateCommentResp
View Source
var DeleteCommentArgs_Req_DEFAULT *comment.DeleteCommentByIdReq
View Source
var DeleteCommentResult_Success_DEFAULT *comment.DeleteCommentByIdResp
View Source
var ListCommentByAuthorIdAndTypeArgs_Req_DEFAULT *comment.ListCommentByAuthorIdAndTypeReq
View Source
var ListCommentByAuthorIdAndTypeResult_Success_DEFAULT *comment.ListCommentByAuthorIdAndTypeResp
View Source
var ListCommentByParentArgs_Req_DEFAULT *comment.ListCommentByParentReq
View Source
var ListCommentByParentResult_Success_DEFAULT *comment.ListCommentByParentResp
View Source
var ListCommentByReplyToAndTypeArgs_Req_DEFAULT *comment.ListCommentByReplyToAndTypeReq
View Source
var ListCommentByReplyToAndTypeResult_Success_DEFAULT *comment.ListCommentByReplyToAndTypeResp
View Source
var RetrieveCommentByIdArgs_Req_DEFAULT *comment.RetrieveCommentByIdReq
View Source
var RetrieveCommentByIdResult_Success_DEFAULT *comment.RetrieveCommentByIdResp
View Source
var UpdateCommentArgs_Req_DEFAULT *comment.UpdateCommentReq
View Source
var UpdateCommentResult_Success_DEFAULT *comment.UpdateCommentResp

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

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 comment.CommentService, opts ...server.RegisterOption) error

Types

type Client

type Client interface {
	CreateComment(ctx context.Context, Req *comment.CreateCommentReq, callOptions ...callopt.Option) (r *comment.CreateCommentResp, err error)
	UpdateComment(ctx context.Context, Req *comment.UpdateCommentReq, callOptions ...callopt.Option) (r *comment.UpdateCommentResp, err error)
	DeleteComment(ctx context.Context, Req *comment.DeleteCommentByIdReq, callOptions ...callopt.Option) (r *comment.DeleteCommentByIdResp, err error)
	ListCommentByParent(ctx context.Context, Req *comment.ListCommentByParentReq, callOptions ...callopt.Option) (r *comment.ListCommentByParentResp, err error)
	CountCommentByParent(ctx context.Context, Req *comment.CountCommentByParentReq, callOptions ...callopt.Option) (r *comment.CountCommentByParentResp, err error)
	RetrieveCommentById(ctx context.Context, Req *comment.RetrieveCommentByIdReq, callOptions ...callopt.Option) (r *comment.RetrieveCommentByIdResp, err error)
	ListCommentByAuthorIdAndType(ctx context.Context, Req *comment.ListCommentByAuthorIdAndTypeReq, callOptions ...callopt.Option) (r *comment.ListCommentByAuthorIdAndTypeResp, err error)
	ListCommentByReplyToAndType(ctx context.Context, Req *comment.ListCommentByReplyToAndTypeReq, callOptions ...callopt.Option) (r *comment.ListCommentByReplyToAndTypeResp, 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 CountCommentByParentArgs

type CountCommentByParentArgs struct {
	Req *comment.CountCommentByParentReq
}

func (*CountCommentByParentArgs) FastRead

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

func (*CountCommentByParentArgs) FastWrite

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

func (*CountCommentByParentArgs) GetFirstArgument

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

func (*CountCommentByParentArgs) GetReq

func (*CountCommentByParentArgs) IsSetReq

func (p *CountCommentByParentArgs) IsSetReq() bool

func (*CountCommentByParentArgs) Marshal

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

func (*CountCommentByParentArgs) Size

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

func (*CountCommentByParentArgs) Unmarshal

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

type CountCommentByParentResult

type CountCommentByParentResult struct {
	Success *comment.CountCommentByParentResp
}

func (*CountCommentByParentResult) FastRead

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

func (*CountCommentByParentResult) FastWrite

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

func (*CountCommentByParentResult) GetResult

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

func (*CountCommentByParentResult) GetSuccess

func (*CountCommentByParentResult) IsSetSuccess

func (p *CountCommentByParentResult) IsSetSuccess() bool

func (*CountCommentByParentResult) Marshal

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

func (*CountCommentByParentResult) SetSuccess

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

func (*CountCommentByParentResult) Size

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

func (*CountCommentByParentResult) Unmarshal

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

type CreateCommentArgs

type CreateCommentArgs struct {
	Req *comment.CreateCommentReq
}

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) GetFirstArgument

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

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.CreateCommentResp
}

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) GetResult

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

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.DeleteCommentByIdReq
}

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) GetFirstArgument

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

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.DeleteCommentByIdResp
}

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) GetResult

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

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

type ListCommentByAuthorIdAndTypeArgs

type ListCommentByAuthorIdAndTypeArgs struct {
	Req *comment.ListCommentByAuthorIdAndTypeReq
}

func (*ListCommentByAuthorIdAndTypeArgs) FastRead

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

func (*ListCommentByAuthorIdAndTypeArgs) FastWrite

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

func (*ListCommentByAuthorIdAndTypeArgs) GetFirstArgument

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

func (*ListCommentByAuthorIdAndTypeArgs) GetReq

func (*ListCommentByAuthorIdAndTypeArgs) IsSetReq

func (p *ListCommentByAuthorIdAndTypeArgs) IsSetReq() bool

func (*ListCommentByAuthorIdAndTypeArgs) Marshal

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

func (*ListCommentByAuthorIdAndTypeArgs) Size

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

func (*ListCommentByAuthorIdAndTypeArgs) Unmarshal

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

type ListCommentByAuthorIdAndTypeResult

type ListCommentByAuthorIdAndTypeResult struct {
	Success *comment.ListCommentByAuthorIdAndTypeResp
}

func (*ListCommentByAuthorIdAndTypeResult) FastRead

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

func (*ListCommentByAuthorIdAndTypeResult) FastWrite

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

func (*ListCommentByAuthorIdAndTypeResult) GetResult

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

func (*ListCommentByAuthorIdAndTypeResult) GetSuccess

func (*ListCommentByAuthorIdAndTypeResult) IsSetSuccess

func (p *ListCommentByAuthorIdAndTypeResult) IsSetSuccess() bool

func (*ListCommentByAuthorIdAndTypeResult) Marshal

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

func (*ListCommentByAuthorIdAndTypeResult) SetSuccess

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

func (*ListCommentByAuthorIdAndTypeResult) Size

func (*ListCommentByAuthorIdAndTypeResult) Unmarshal

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

type ListCommentByParentArgs

type ListCommentByParentArgs struct {
	Req *comment.ListCommentByParentReq
}

func (*ListCommentByParentArgs) FastRead

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

func (*ListCommentByParentArgs) FastWrite

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

func (*ListCommentByParentArgs) GetFirstArgument

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

func (*ListCommentByParentArgs) GetReq

func (*ListCommentByParentArgs) IsSetReq

func (p *ListCommentByParentArgs) IsSetReq() bool

func (*ListCommentByParentArgs) Marshal

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

func (*ListCommentByParentArgs) Size

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

func (*ListCommentByParentArgs) Unmarshal

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

type ListCommentByParentResult

type ListCommentByParentResult struct {
	Success *comment.ListCommentByParentResp
}

func (*ListCommentByParentResult) FastRead

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

func (*ListCommentByParentResult) FastWrite

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

func (*ListCommentByParentResult) GetResult

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

func (*ListCommentByParentResult) GetSuccess

func (*ListCommentByParentResult) IsSetSuccess

func (p *ListCommentByParentResult) IsSetSuccess() bool

func (*ListCommentByParentResult) Marshal

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

func (*ListCommentByParentResult) SetSuccess

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

func (*ListCommentByParentResult) Size

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

func (*ListCommentByParentResult) Unmarshal

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

type ListCommentByReplyToAndTypeArgs

type ListCommentByReplyToAndTypeArgs struct {
	Req *comment.ListCommentByReplyToAndTypeReq
}

func (*ListCommentByReplyToAndTypeArgs) FastRead

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

func (*ListCommentByReplyToAndTypeArgs) FastWrite

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

func (*ListCommentByReplyToAndTypeArgs) GetFirstArgument

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

func (*ListCommentByReplyToAndTypeArgs) GetReq

func (*ListCommentByReplyToAndTypeArgs) IsSetReq

func (p *ListCommentByReplyToAndTypeArgs) IsSetReq() bool

func (*ListCommentByReplyToAndTypeArgs) Marshal

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

func (*ListCommentByReplyToAndTypeArgs) Size

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

func (*ListCommentByReplyToAndTypeArgs) Unmarshal

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

type ListCommentByReplyToAndTypeResult

type ListCommentByReplyToAndTypeResult struct {
	Success *comment.ListCommentByReplyToAndTypeResp
}

func (*ListCommentByReplyToAndTypeResult) FastRead

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

func (*ListCommentByReplyToAndTypeResult) FastWrite

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

func (*ListCommentByReplyToAndTypeResult) GetResult

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

func (*ListCommentByReplyToAndTypeResult) GetSuccess

func (*ListCommentByReplyToAndTypeResult) IsSetSuccess

func (p *ListCommentByReplyToAndTypeResult) IsSetSuccess() bool

func (*ListCommentByReplyToAndTypeResult) Marshal

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

func (*ListCommentByReplyToAndTypeResult) SetSuccess

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

func (*ListCommentByReplyToAndTypeResult) Size

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

func (*ListCommentByReplyToAndTypeResult) Unmarshal

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

type RetrieveCommentByIdArgs

type RetrieveCommentByIdArgs struct {
	Req *comment.RetrieveCommentByIdReq
}

func (*RetrieveCommentByIdArgs) FastRead

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

func (*RetrieveCommentByIdArgs) FastWrite

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

func (*RetrieveCommentByIdArgs) GetFirstArgument

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

func (*RetrieveCommentByIdArgs) GetReq

func (*RetrieveCommentByIdArgs) IsSetReq

func (p *RetrieveCommentByIdArgs) IsSetReq() bool

func (*RetrieveCommentByIdArgs) Marshal

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

func (*RetrieveCommentByIdArgs) Size

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

func (*RetrieveCommentByIdArgs) Unmarshal

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

type RetrieveCommentByIdResult

type RetrieveCommentByIdResult struct {
	Success *comment.RetrieveCommentByIdResp
}

func (*RetrieveCommentByIdResult) FastRead

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

func (*RetrieveCommentByIdResult) FastWrite

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

func (*RetrieveCommentByIdResult) GetResult

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

func (*RetrieveCommentByIdResult) GetSuccess

func (*RetrieveCommentByIdResult) IsSetSuccess

func (p *RetrieveCommentByIdResult) IsSetSuccess() bool

func (*RetrieveCommentByIdResult) Marshal

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

func (*RetrieveCommentByIdResult) SetSuccess

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

func (*RetrieveCommentByIdResult) Size

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

func (*RetrieveCommentByIdResult) Unmarshal

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

type UpdateCommentArgs

type UpdateCommentArgs struct {
	Req *comment.UpdateCommentReq
}

func (*UpdateCommentArgs) FastRead

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

func (*UpdateCommentArgs) FastWrite

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

func (*UpdateCommentArgs) GetFirstArgument

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

func (*UpdateCommentArgs) GetReq

func (*UpdateCommentArgs) IsSetReq

func (p *UpdateCommentArgs) IsSetReq() bool

func (*UpdateCommentArgs) Marshal

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

func (*UpdateCommentArgs) Size

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

func (*UpdateCommentArgs) Unmarshal

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

type UpdateCommentResult

type UpdateCommentResult struct {
	Success *comment.UpdateCommentResp
}

func (*UpdateCommentResult) FastRead

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

func (*UpdateCommentResult) FastWrite

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

func (*UpdateCommentResult) GetResult

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

func (*UpdateCommentResult) GetSuccess

func (*UpdateCommentResult) IsSetSuccess

func (p *UpdateCommentResult) IsSetSuccess() bool

func (*UpdateCommentResult) Marshal

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

func (*UpdateCommentResult) SetSuccess

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

func (*UpdateCommentResult) Size

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

func (*UpdateCommentResult) Unmarshal

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

Jump to

Keyboard shortcuts

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