Documentation ¶
Overview ¶
Code generated by Kitex v0.4.4. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler comment_rpc.CommentService, opts ...server.Option) server.Invoker
- func NewServer(handler comment_rpc.CommentService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type CommentListArgs
- func (p *CommentListArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *CommentListArgs) FastWrite(buf []byte) (n int)
- func (p *CommentListArgs) GetReq() *comment_rpc.RPCCommentListReq
- func (p *CommentListArgs) IsSetReq() bool
- func (p *CommentListArgs) Marshal(out []byte) ([]byte, error)
- func (p *CommentListArgs) Size() (n int)
- func (p *CommentListArgs) Unmarshal(in []byte) error
- type CommentListResult
- func (p *CommentListResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *CommentListResult) FastWrite(buf []byte) (n int)
- func (p *CommentListResult) GetSuccess() *comment_rpc.RPCCommentListResp
- func (p *CommentListResult) IsSetSuccess() bool
- func (p *CommentListResult) Marshal(out []byte) ([]byte, error)
- func (p *CommentListResult) SetSuccess(x interface{})
- func (p *CommentListResult) Size() (n int)
- func (p *CommentListResult) Unmarshal(in []byte) error
- type CreateCommentArgs
- func (p *CreateCommentArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *CreateCommentArgs) FastWrite(buf []byte) (n int)
- func (p *CreateCommentArgs) GetReq() *comment_rpc.RPCCommentCreateReq
- func (p *CreateCommentArgs) IsSetReq() bool
- func (p *CreateCommentArgs) Marshal(out []byte) ([]byte, error)
- func (p *CreateCommentArgs) Size() (n int)
- func (p *CreateCommentArgs) Unmarshal(in []byte) error
- type CreateCommentResult
- func (p *CreateCommentResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *CreateCommentResult) FastWrite(buf []byte) (n int)
- func (p *CreateCommentResult) GetSuccess() *comment_rpc.RPCActionResp
- func (p *CreateCommentResult) IsSetSuccess() bool
- func (p *CreateCommentResult) Marshal(out []byte) ([]byte, error)
- func (p *CreateCommentResult) SetSuccess(x interface{})
- func (p *CreateCommentResult) Size() (n int)
- func (p *CreateCommentResult) Unmarshal(in []byte) error
- type DelCommentArgs
- func (p *DelCommentArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *DelCommentArgs) FastWrite(buf []byte) (n int)
- func (p *DelCommentArgs) GetReq() *comment_rpc.RPCCommentDelReq
- func (p *DelCommentArgs) IsSetReq() bool
- func (p *DelCommentArgs) Marshal(out []byte) ([]byte, error)
- func (p *DelCommentArgs) Size() (n int)
- func (p *DelCommentArgs) Unmarshal(in []byte) error
- type DelCommentResult
- func (p *DelCommentResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *DelCommentResult) FastWrite(buf []byte) (n int)
- func (p *DelCommentResult) GetSuccess() *comment_rpc.RPCActionResp
- func (p *DelCommentResult) IsSetSuccess() bool
- func (p *DelCommentResult) Marshal(out []byte) ([]byte, error)
- func (p *DelCommentResult) SetSuccess(x interface{})
- func (p *DelCommentResult) Size() (n int)
- func (p *DelCommentResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CommentListArgs_Req_DEFAULT *comment_rpc.RPCCommentListReq
View Source
var CommentListResult_Success_DEFAULT *comment_rpc.RPCCommentListResp
View Source
var CreateCommentArgs_Req_DEFAULT *comment_rpc.RPCCommentCreateReq
View Source
var CreateCommentResult_Success_DEFAULT *comment_rpc.RPCActionResp
View Source
var DelCommentArgs_Req_DEFAULT *comment_rpc.RPCCommentDelReq
View Source
var DelCommentResult_Success_DEFAULT *comment_rpc.RPCActionResp
Functions ¶
func NewInvoker ¶
func NewInvoker(handler comment_rpc.CommentService, opts ...server.Option) server.Invoker
NewInvoker creates a server.Invoker with the given handler and options.
func NewServer ¶
func NewServer(handler comment_rpc.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_rpc.RPCCommentCreateReq, callOptions ...callopt.Option) (r *comment_rpc.RPCActionResp, err error) DelComment(ctx context.Context, Req *comment_rpc.RPCCommentDelReq, callOptions ...callopt.Option) (r *comment_rpc.RPCActionResp, err error) CommentList(ctx context.Context, Req *comment_rpc.RPCCommentListReq, callOptions ...callopt.Option) (r *comment_rpc.RPCCommentListResp, 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_rpc.RPCCommentListReq
}
func (*CommentListArgs) FastWrite ¶
func (p *CommentListArgs) FastWrite(buf []byte) (n int)
func (*CommentListArgs) GetReq ¶
func (p *CommentListArgs) GetReq() *comment_rpc.RPCCommentListReq
func (*CommentListArgs) IsSetReq ¶
func (p *CommentListArgs) IsSetReq() bool
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_rpc.RPCCommentListResp
}
func (*CommentListResult) FastWrite ¶
func (p *CommentListResult) FastWrite(buf []byte) (n int)
func (*CommentListResult) GetSuccess ¶
func (p *CommentListResult) GetSuccess() *comment_rpc.RPCCommentListResp
func (*CommentListResult) IsSetSuccess ¶
func (p *CommentListResult) IsSetSuccess() bool
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_rpc.RPCCommentCreateReq
}
func (*CreateCommentArgs) FastWrite ¶
func (p *CreateCommentArgs) FastWrite(buf []byte) (n int)
func (*CreateCommentArgs) GetReq ¶
func (p *CreateCommentArgs) GetReq() *comment_rpc.RPCCommentCreateReq
func (*CreateCommentArgs) IsSetReq ¶
func (p *CreateCommentArgs) IsSetReq() bool
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_rpc.RPCActionResp
}
func (*CreateCommentResult) FastWrite ¶
func (p *CreateCommentResult) FastWrite(buf []byte) (n int)
func (*CreateCommentResult) GetSuccess ¶
func (p *CreateCommentResult) GetSuccess() *comment_rpc.RPCActionResp
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 DelCommentArgs ¶
type DelCommentArgs struct {
Req *comment_rpc.RPCCommentDelReq
}
func (*DelCommentArgs) FastWrite ¶
func (p *DelCommentArgs) FastWrite(buf []byte) (n int)
func (*DelCommentArgs) GetReq ¶
func (p *DelCommentArgs) GetReq() *comment_rpc.RPCCommentDelReq
func (*DelCommentArgs) IsSetReq ¶
func (p *DelCommentArgs) IsSetReq() bool
func (*DelCommentArgs) Size ¶
func (p *DelCommentArgs) Size() (n int)
func (*DelCommentArgs) Unmarshal ¶
func (p *DelCommentArgs) Unmarshal(in []byte) error
type DelCommentResult ¶
type DelCommentResult struct {
Success *comment_rpc.RPCActionResp
}
func (*DelCommentResult) FastWrite ¶
func (p *DelCommentResult) FastWrite(buf []byte) (n int)
func (*DelCommentResult) GetSuccess ¶
func (p *DelCommentResult) GetSuccess() *comment_rpc.RPCActionResp
func (*DelCommentResult) IsSetSuccess ¶
func (p *DelCommentResult) IsSetSuccess() bool
func (*DelCommentResult) SetSuccess ¶
func (p *DelCommentResult) SetSuccess(x interface{})
func (*DelCommentResult) Size ¶
func (p *DelCommentResult) Size() (n int)
func (*DelCommentResult) Unmarshal ¶
func (p *DelCommentResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.