Documentation ¶
Overview ¶
Code generated by Kitex v0.12.1. DO NOT EDIT.
Index ¶
- Variables
- func NewServer(handler core_api.Post, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler core_api.Post, opts ...server.RegisterOption) error
- type Client
- type DeletePostArgs
- func (p *DeletePostArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *DeletePostArgs) FastWrite(buf []byte) (n int)
- func (p *DeletePostArgs) GetFirstArgument() interface{}
- func (p *DeletePostArgs) GetReq() *core_api.DeletePostReq
- func (p *DeletePostArgs) IsSetReq() bool
- func (p *DeletePostArgs) Marshal(out []byte) ([]byte, error)
- func (p *DeletePostArgs) Size() (n int)
- func (p *DeletePostArgs) Unmarshal(in []byte) error
- type DeletePostResult
- func (p *DeletePostResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *DeletePostResult) FastWrite(buf []byte) (n int)
- func (p *DeletePostResult) GetResult() interface{}
- func (p *DeletePostResult) GetSuccess() *core_api.DeletePostResp
- func (p *DeletePostResult) IsSetSuccess() bool
- func (p *DeletePostResult) Marshal(out []byte) ([]byte, error)
- func (p *DeletePostResult) SetSuccess(x interface{})
- func (p *DeletePostResult) Size() (n int)
- func (p *DeletePostResult) Unmarshal(in []byte) error
- type GetPostDetailArgs
- func (p *GetPostDetailArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetPostDetailArgs) FastWrite(buf []byte) (n int)
- func (p *GetPostDetailArgs) GetFirstArgument() interface{}
- func (p *GetPostDetailArgs) GetReq() *core_api.GetPostDetailReq
- func (p *GetPostDetailArgs) IsSetReq() bool
- func (p *GetPostDetailArgs) Marshal(out []byte) ([]byte, error)
- func (p *GetPostDetailArgs) Size() (n int)
- func (p *GetPostDetailArgs) Unmarshal(in []byte) error
- type GetPostDetailResult
- func (p *GetPostDetailResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetPostDetailResult) FastWrite(buf []byte) (n int)
- func (p *GetPostDetailResult) GetResult() interface{}
- func (p *GetPostDetailResult) GetSuccess() *core_api.GetPostDetailResp
- func (p *GetPostDetailResult) IsSetSuccess() bool
- func (p *GetPostDetailResult) Marshal(out []byte) ([]byte, error)
- func (p *GetPostDetailResult) SetSuccess(x interface{})
- func (p *GetPostDetailResult) Size() (n int)
- func (p *GetPostDetailResult) Unmarshal(in []byte) error
- type GetPostPreviewsArgs
- func (p *GetPostPreviewsArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetPostPreviewsArgs) FastWrite(buf []byte) (n int)
- func (p *GetPostPreviewsArgs) GetFirstArgument() interface{}
- func (p *GetPostPreviewsArgs) GetReq() *core_api.GetPostPreviewsReq
- func (p *GetPostPreviewsArgs) IsSetReq() bool
- func (p *GetPostPreviewsArgs) Marshal(out []byte) ([]byte, error)
- func (p *GetPostPreviewsArgs) Size() (n int)
- func (p *GetPostPreviewsArgs) Unmarshal(in []byte) error
- type GetPostPreviewsResult
- func (p *GetPostPreviewsResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetPostPreviewsResult) FastWrite(buf []byte) (n int)
- func (p *GetPostPreviewsResult) GetResult() interface{}
- func (p *GetPostPreviewsResult) GetSuccess() *core_api.GetPostPreviewsResp
- func (p *GetPostPreviewsResult) IsSetSuccess() bool
- func (p *GetPostPreviewsResult) Marshal(out []byte) ([]byte, error)
- func (p *GetPostPreviewsResult) SetSuccess(x interface{})
- func (p *GetPostPreviewsResult) Size() (n int)
- func (p *GetPostPreviewsResult) Unmarshal(in []byte) error
- type NewPostArgs
- func (p *NewPostArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *NewPostArgs) FastWrite(buf []byte) (n int)
- func (p *NewPostArgs) GetFirstArgument() interface{}
- func (p *NewPostArgs) GetReq() *core_api.NewPostReq
- func (p *NewPostArgs) IsSetReq() bool
- func (p *NewPostArgs) Marshal(out []byte) ([]byte, error)
- func (p *NewPostArgs) Size() (n int)
- func (p *NewPostArgs) Unmarshal(in []byte) error
- type NewPostResult
- func (p *NewPostResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *NewPostResult) FastWrite(buf []byte) (n int)
- func (p *NewPostResult) GetResult() interface{}
- func (p *NewPostResult) GetSuccess() *core_api.NewPostResp
- func (p *NewPostResult) IsSetSuccess() bool
- func (p *NewPostResult) Marshal(out []byte) ([]byte, error)
- func (p *NewPostResult) SetSuccess(x interface{})
- func (p *NewPostResult) Size() (n int)
- func (p *NewPostResult) Unmarshal(in []byte) error
- type SetOfficialArgs
- func (p *SetOfficialArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *SetOfficialArgs) FastWrite(buf []byte) (n int)
- func (p *SetOfficialArgs) GetFirstArgument() interface{}
- func (p *SetOfficialArgs) GetReq() *core_api.SetOfficialReq
- func (p *SetOfficialArgs) IsSetReq() bool
- func (p *SetOfficialArgs) Marshal(out []byte) ([]byte, error)
- func (p *SetOfficialArgs) Size() (n int)
- func (p *SetOfficialArgs) Unmarshal(in []byte) error
- type SetOfficialResult
- func (p *SetOfficialResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *SetOfficialResult) FastWrite(buf []byte) (n int)
- func (p *SetOfficialResult) GetResult() interface{}
- func (p *SetOfficialResult) GetSuccess() *core_api.SetOfficialResp
- func (p *SetOfficialResult) IsSetSuccess() bool
- func (p *SetOfficialResult) Marshal(out []byte) ([]byte, error)
- func (p *SetOfficialResult) SetSuccess(x interface{})
- func (p *SetOfficialResult) Size() (n int)
- func (p *SetOfficialResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DeletePostArgs_Req_DEFAULT *core_api.DeletePostReq
View Source
var DeletePostResult_Success_DEFAULT *core_api.DeletePostResp
View Source
var GetPostDetailArgs_Req_DEFAULT *core_api.GetPostDetailReq
View Source
var GetPostDetailResult_Success_DEFAULT *core_api.GetPostDetailResp
View Source
var GetPostPreviewsArgs_Req_DEFAULT *core_api.GetPostPreviewsReq
View Source
var GetPostPreviewsResult_Success_DEFAULT *core_api.GetPostPreviewsResp
View Source
var NewPostArgs_Req_DEFAULT *core_api.NewPostReq
View Source
var NewPostResult_Success_DEFAULT *core_api.NewPostResp
View Source
var SetOfficialArgs_Req_DEFAULT *core_api.SetOfficialReq
View Source
var SetOfficialResult_Success_DEFAULT *core_api.SetOfficialResp
Functions ¶
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 ¶
Types ¶
type Client ¶
type Client interface { GetPostPreviews(ctx context.Context, Req *core_api.GetPostPreviewsReq, callOptions ...callopt.Option) (r *core_api.GetPostPreviewsResp, err error) GetPostDetail(ctx context.Context, Req *core_api.GetPostDetailReq, callOptions ...callopt.Option) (r *core_api.GetPostDetailResp, err error) NewPost(ctx context.Context, Req *core_api.NewPostReq, callOptions ...callopt.Option) (r *core_api.NewPostResp, err error) DeletePost(ctx context.Context, Req *core_api.DeletePostReq, callOptions ...callopt.Option) (r *core_api.DeletePostResp, err error) SetOfficial(ctx context.Context, Req *core_api.SetOfficialReq, callOptions ...callopt.Option) (r *core_api.SetOfficialResp, 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 DeletePostArgs ¶
type DeletePostArgs struct {
Req *core_api.DeletePostReq
}
func (*DeletePostArgs) FastWrite ¶
func (p *DeletePostArgs) FastWrite(buf []byte) (n int)
func (*DeletePostArgs) GetFirstArgument ¶
func (p *DeletePostArgs) GetFirstArgument() interface{}
func (*DeletePostArgs) GetReq ¶
func (p *DeletePostArgs) GetReq() *core_api.DeletePostReq
func (*DeletePostArgs) IsSetReq ¶
func (p *DeletePostArgs) IsSetReq() bool
func (*DeletePostArgs) Size ¶
func (p *DeletePostArgs) Size() (n int)
func (*DeletePostArgs) Unmarshal ¶
func (p *DeletePostArgs) Unmarshal(in []byte) error
type DeletePostResult ¶
type DeletePostResult struct {
Success *core_api.DeletePostResp
}
func (*DeletePostResult) FastWrite ¶
func (p *DeletePostResult) FastWrite(buf []byte) (n int)
func (*DeletePostResult) GetResult ¶
func (p *DeletePostResult) GetResult() interface{}
func (*DeletePostResult) GetSuccess ¶
func (p *DeletePostResult) GetSuccess() *core_api.DeletePostResp
func (*DeletePostResult) IsSetSuccess ¶
func (p *DeletePostResult) IsSetSuccess() bool
func (*DeletePostResult) SetSuccess ¶
func (p *DeletePostResult) SetSuccess(x interface{})
func (*DeletePostResult) Size ¶
func (p *DeletePostResult) Size() (n int)
func (*DeletePostResult) Unmarshal ¶
func (p *DeletePostResult) Unmarshal(in []byte) error
type GetPostDetailArgs ¶
type GetPostDetailArgs struct {
Req *core_api.GetPostDetailReq
}
func (*GetPostDetailArgs) FastWrite ¶
func (p *GetPostDetailArgs) FastWrite(buf []byte) (n int)
func (*GetPostDetailArgs) GetFirstArgument ¶
func (p *GetPostDetailArgs) GetFirstArgument() interface{}
func (*GetPostDetailArgs) GetReq ¶
func (p *GetPostDetailArgs) GetReq() *core_api.GetPostDetailReq
func (*GetPostDetailArgs) IsSetReq ¶
func (p *GetPostDetailArgs) IsSetReq() bool
func (*GetPostDetailArgs) Size ¶
func (p *GetPostDetailArgs) Size() (n int)
func (*GetPostDetailArgs) Unmarshal ¶
func (p *GetPostDetailArgs) Unmarshal(in []byte) error
type GetPostDetailResult ¶
type GetPostDetailResult struct {
Success *core_api.GetPostDetailResp
}
func (*GetPostDetailResult) FastWrite ¶
func (p *GetPostDetailResult) FastWrite(buf []byte) (n int)
func (*GetPostDetailResult) GetResult ¶
func (p *GetPostDetailResult) GetResult() interface{}
func (*GetPostDetailResult) GetSuccess ¶
func (p *GetPostDetailResult) GetSuccess() *core_api.GetPostDetailResp
func (*GetPostDetailResult) IsSetSuccess ¶
func (p *GetPostDetailResult) IsSetSuccess() bool
func (*GetPostDetailResult) Marshal ¶
func (p *GetPostDetailResult) Marshal(out []byte) ([]byte, error)
func (*GetPostDetailResult) SetSuccess ¶
func (p *GetPostDetailResult) SetSuccess(x interface{})
func (*GetPostDetailResult) Size ¶
func (p *GetPostDetailResult) Size() (n int)
func (*GetPostDetailResult) Unmarshal ¶
func (p *GetPostDetailResult) Unmarshal(in []byte) error
type GetPostPreviewsArgs ¶
type GetPostPreviewsArgs struct {
Req *core_api.GetPostPreviewsReq
}
func (*GetPostPreviewsArgs) FastWrite ¶
func (p *GetPostPreviewsArgs) FastWrite(buf []byte) (n int)
func (*GetPostPreviewsArgs) GetFirstArgument ¶
func (p *GetPostPreviewsArgs) GetFirstArgument() interface{}
func (*GetPostPreviewsArgs) GetReq ¶
func (p *GetPostPreviewsArgs) GetReq() *core_api.GetPostPreviewsReq
func (*GetPostPreviewsArgs) IsSetReq ¶
func (p *GetPostPreviewsArgs) IsSetReq() bool
func (*GetPostPreviewsArgs) Marshal ¶
func (p *GetPostPreviewsArgs) Marshal(out []byte) ([]byte, error)
func (*GetPostPreviewsArgs) Size ¶
func (p *GetPostPreviewsArgs) Size() (n int)
func (*GetPostPreviewsArgs) Unmarshal ¶
func (p *GetPostPreviewsArgs) Unmarshal(in []byte) error
type GetPostPreviewsResult ¶
type GetPostPreviewsResult struct {
Success *core_api.GetPostPreviewsResp
}
func (*GetPostPreviewsResult) FastWrite ¶
func (p *GetPostPreviewsResult) FastWrite(buf []byte) (n int)
func (*GetPostPreviewsResult) GetResult ¶
func (p *GetPostPreviewsResult) GetResult() interface{}
func (*GetPostPreviewsResult) GetSuccess ¶
func (p *GetPostPreviewsResult) GetSuccess() *core_api.GetPostPreviewsResp
func (*GetPostPreviewsResult) IsSetSuccess ¶
func (p *GetPostPreviewsResult) IsSetSuccess() bool
func (*GetPostPreviewsResult) Marshal ¶
func (p *GetPostPreviewsResult) Marshal(out []byte) ([]byte, error)
func (*GetPostPreviewsResult) SetSuccess ¶
func (p *GetPostPreviewsResult) SetSuccess(x interface{})
func (*GetPostPreviewsResult) Size ¶
func (p *GetPostPreviewsResult) Size() (n int)
func (*GetPostPreviewsResult) Unmarshal ¶
func (p *GetPostPreviewsResult) Unmarshal(in []byte) error
type NewPostArgs ¶
type NewPostArgs struct {
Req *core_api.NewPostReq
}
func (*NewPostArgs) FastWrite ¶
func (p *NewPostArgs) FastWrite(buf []byte) (n int)
func (*NewPostArgs) GetFirstArgument ¶
func (p *NewPostArgs) GetFirstArgument() interface{}
func (*NewPostArgs) GetReq ¶
func (p *NewPostArgs) GetReq() *core_api.NewPostReq
func (*NewPostArgs) IsSetReq ¶
func (p *NewPostArgs) IsSetReq() bool
func (*NewPostArgs) Size ¶
func (p *NewPostArgs) Size() (n int)
func (*NewPostArgs) Unmarshal ¶
func (p *NewPostArgs) Unmarshal(in []byte) error
type NewPostResult ¶
type NewPostResult struct {
Success *core_api.NewPostResp
}
func (*NewPostResult) FastWrite ¶
func (p *NewPostResult) FastWrite(buf []byte) (n int)
func (*NewPostResult) GetResult ¶
func (p *NewPostResult) GetResult() interface{}
func (*NewPostResult) GetSuccess ¶
func (p *NewPostResult) GetSuccess() *core_api.NewPostResp
func (*NewPostResult) IsSetSuccess ¶
func (p *NewPostResult) IsSetSuccess() bool
func (*NewPostResult) SetSuccess ¶
func (p *NewPostResult) SetSuccess(x interface{})
func (*NewPostResult) Size ¶
func (p *NewPostResult) Size() (n int)
func (*NewPostResult) Unmarshal ¶
func (p *NewPostResult) Unmarshal(in []byte) error
type SetOfficialArgs ¶
type SetOfficialArgs struct {
Req *core_api.SetOfficialReq
}
func (*SetOfficialArgs) FastWrite ¶
func (p *SetOfficialArgs) FastWrite(buf []byte) (n int)
func (*SetOfficialArgs) GetFirstArgument ¶
func (p *SetOfficialArgs) GetFirstArgument() interface{}
func (*SetOfficialArgs) GetReq ¶
func (p *SetOfficialArgs) GetReq() *core_api.SetOfficialReq
func (*SetOfficialArgs) IsSetReq ¶
func (p *SetOfficialArgs) IsSetReq() bool
func (*SetOfficialArgs) Size ¶
func (p *SetOfficialArgs) Size() (n int)
func (*SetOfficialArgs) Unmarshal ¶
func (p *SetOfficialArgs) Unmarshal(in []byte) error
type SetOfficialResult ¶
type SetOfficialResult struct {
Success *core_api.SetOfficialResp
}
func (*SetOfficialResult) FastWrite ¶
func (p *SetOfficialResult) FastWrite(buf []byte) (n int)
func (*SetOfficialResult) GetResult ¶
func (p *SetOfficialResult) GetResult() interface{}
func (*SetOfficialResult) GetSuccess ¶
func (p *SetOfficialResult) GetSuccess() *core_api.SetOfficialResp
func (*SetOfficialResult) IsSetSuccess ¶
func (p *SetOfficialResult) IsSetSuccess() bool
func (*SetOfficialResult) SetSuccess ¶
func (p *SetOfficialResult) SetSuccess(x interface{})
func (*SetOfficialResult) Size ¶
func (p *SetOfficialResult) Size() (n int)
func (*SetOfficialResult) Unmarshal ¶
func (p *SetOfficialResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.