Documentation ¶
Overview ¶
Code generated by Kitex v0.3.2. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler comment.CommentService, opts ...server.Option) server.Invoker
- func NewServer(handler comment.CommentService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type CommentListArgs
- type CommentListResult
- type CreateCommentArgs
- type CreateCommentResult
- func (p *CreateCommentResult) GetSuccess() *comment.CreateCommentResponse
- func (p *CreateCommentResult) IsSetSuccess() bool
- func (p *CreateCommentResult) Marshal(out []byte) ([]byte, error)
- func (p *CreateCommentResult) SetSuccess(x interface{})
- func (p *CreateCommentResult) Unmarshal(in []byte) error
- type DeleteCommentArgs
- type DeleteCommentResult
- func (p *DeleteCommentResult) GetSuccess() *comment.DeleteCommentResponse
- func (p *DeleteCommentResult) IsSetSuccess() bool
- func (p *DeleteCommentResult) Marshal(out []byte) ([]byte, error)
- func (p *DeleteCommentResult) SetSuccess(x interface{})
- func (p *DeleteCommentResult) Unmarshal(in []byte) error
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 ¶
NewInvoker creates a server.Invoker 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 ¶
MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.
type CommentListArgs ¶
type CommentListArgs struct {
Req *comment.CommentListRequest
}
func (*CommentListArgs) GetReq ¶
func (p *CommentListArgs) GetReq() *comment.CommentListRequest
func (*CommentListArgs) IsSetReq ¶
func (p *CommentListArgs) IsSetReq() bool
func (*CommentListArgs) Unmarshal ¶
func (p *CommentListArgs) Unmarshal(in []byte) error
type CommentListResult ¶
type CommentListResult struct {
Success *comment.CommentListResponse
}
func (*CommentListResult) GetSuccess ¶
func (p *CommentListResult) GetSuccess() *comment.CommentListResponse
func (*CommentListResult) IsSetSuccess ¶
func (p *CommentListResult) IsSetSuccess() bool
func (*CommentListResult) SetSuccess ¶
func (p *CommentListResult) SetSuccess(x interface{})
func (*CommentListResult) Unmarshal ¶
func (p *CommentListResult) Unmarshal(in []byte) error
type CreateCommentArgs ¶
type CreateCommentArgs struct {
Req *comment.CreateCommentRequest
}
func (*CreateCommentArgs) GetReq ¶
func (p *CreateCommentArgs) GetReq() *comment.CreateCommentRequest
func (*CreateCommentArgs) IsSetReq ¶
func (p *CreateCommentArgs) IsSetReq() bool
func (*CreateCommentArgs) Unmarshal ¶
func (p *CreateCommentArgs) Unmarshal(in []byte) error
type CreateCommentResult ¶
type CreateCommentResult struct {
Success *comment.CreateCommentResponse
}
func (*CreateCommentResult) GetSuccess ¶
func (p *CreateCommentResult) GetSuccess() *comment.CreateCommentResponse
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) Unmarshal ¶
func (p *CreateCommentResult) Unmarshal(in []byte) error
type DeleteCommentArgs ¶
type DeleteCommentArgs struct {
Req *comment.DeleteCommentRequest
}
func (*DeleteCommentArgs) GetReq ¶
func (p *DeleteCommentArgs) GetReq() *comment.DeleteCommentRequest
func (*DeleteCommentArgs) IsSetReq ¶
func (p *DeleteCommentArgs) IsSetReq() bool
func (*DeleteCommentArgs) Unmarshal ¶
func (p *DeleteCommentArgs) Unmarshal(in []byte) error
type DeleteCommentResult ¶
type DeleteCommentResult struct {
Success *comment.DeleteCommentResponse
}
func (*DeleteCommentResult) GetSuccess ¶
func (p *DeleteCommentResult) GetSuccess() *comment.DeleteCommentResponse
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) Unmarshal ¶
func (p *DeleteCommentResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.