Documentation ¶
Overview ¶
Code generated by Kitex v0.9.1. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler core_api.Moment, opts ...server.Option) server.Invoker
- func NewServer(handler core_api.Moment, 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.Moment, opts ...server.RegisterOption) error
- type Client
- type DeleteMomentArgs
- func (p *DeleteMomentArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *DeleteMomentArgs) FastWrite(buf []byte) (n int)
- func (p *DeleteMomentArgs) GetFirstArgument() interface{}
- func (p *DeleteMomentArgs) GetReq() *core_api.DeleteMomentReq
- func (p *DeleteMomentArgs) IsSetReq() bool
- func (p *DeleteMomentArgs) Marshal(out []byte) ([]byte, error)
- func (p *DeleteMomentArgs) Size() (n int)
- func (p *DeleteMomentArgs) Unmarshal(in []byte) error
- type DeleteMomentResult
- func (p *DeleteMomentResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *DeleteMomentResult) FastWrite(buf []byte) (n int)
- func (p *DeleteMomentResult) GetResult() interface{}
- func (p *DeleteMomentResult) GetSuccess() *core_api.DeleteMomentResp
- func (p *DeleteMomentResult) IsSetSuccess() bool
- func (p *DeleteMomentResult) Marshal(out []byte) ([]byte, error)
- func (p *DeleteMomentResult) SetSuccess(x interface{})
- func (p *DeleteMomentResult) Size() (n int)
- func (p *DeleteMomentResult) Unmarshal(in []byte) error
- type GetMomentDetailArgs
- func (p *GetMomentDetailArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetMomentDetailArgs) FastWrite(buf []byte) (n int)
- func (p *GetMomentDetailArgs) GetFirstArgument() interface{}
- func (p *GetMomentDetailArgs) GetReq() *core_api.GetMomentDetailReq
- func (p *GetMomentDetailArgs) IsSetReq() bool
- func (p *GetMomentDetailArgs) Marshal(out []byte) ([]byte, error)
- func (p *GetMomentDetailArgs) Size() (n int)
- func (p *GetMomentDetailArgs) Unmarshal(in []byte) error
- type GetMomentDetailResult
- func (p *GetMomentDetailResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetMomentDetailResult) FastWrite(buf []byte) (n int)
- func (p *GetMomentDetailResult) GetResult() interface{}
- func (p *GetMomentDetailResult) GetSuccess() *core_api.GetMomentDetailResp
- func (p *GetMomentDetailResult) IsSetSuccess() bool
- func (p *GetMomentDetailResult) Marshal(out []byte) ([]byte, error)
- func (p *GetMomentDetailResult) SetSuccess(x interface{})
- func (p *GetMomentDetailResult) Size() (n int)
- func (p *GetMomentDetailResult) Unmarshal(in []byte) error
- type GetMomentPreviewsArgs
- func (p *GetMomentPreviewsArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetMomentPreviewsArgs) FastWrite(buf []byte) (n int)
- func (p *GetMomentPreviewsArgs) GetFirstArgument() interface{}
- func (p *GetMomentPreviewsArgs) GetReq() *core_api.GetMomentPreviewsReq
- func (p *GetMomentPreviewsArgs) IsSetReq() bool
- func (p *GetMomentPreviewsArgs) Marshal(out []byte) ([]byte, error)
- func (p *GetMomentPreviewsArgs) Size() (n int)
- func (p *GetMomentPreviewsArgs) Unmarshal(in []byte) error
- type GetMomentPreviewsResult
- func (p *GetMomentPreviewsResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetMomentPreviewsResult) FastWrite(buf []byte) (n int)
- func (p *GetMomentPreviewsResult) GetResult() interface{}
- func (p *GetMomentPreviewsResult) GetSuccess() *core_api.GetMomentPreviewsResp
- func (p *GetMomentPreviewsResult) IsSetSuccess() bool
- func (p *GetMomentPreviewsResult) Marshal(out []byte) ([]byte, error)
- func (p *GetMomentPreviewsResult) SetSuccess(x interface{})
- func (p *GetMomentPreviewsResult) Size() (n int)
- func (p *GetMomentPreviewsResult) Unmarshal(in []byte) error
- type NewMomentArgs
- func (p *NewMomentArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *NewMomentArgs) FastWrite(buf []byte) (n int)
- func (p *NewMomentArgs) GetFirstArgument() interface{}
- func (p *NewMomentArgs) GetReq() *core_api.NewMomentReq
- func (p *NewMomentArgs) IsSetReq() bool
- func (p *NewMomentArgs) Marshal(out []byte) ([]byte, error)
- func (p *NewMomentArgs) Size() (n int)
- func (p *NewMomentArgs) Unmarshal(in []byte) error
- type NewMomentResult
- func (p *NewMomentResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *NewMomentResult) FastWrite(buf []byte) (n int)
- func (p *NewMomentResult) GetResult() interface{}
- func (p *NewMomentResult) GetSuccess() *core_api.NewMomentResp
- func (p *NewMomentResult) IsSetSuccess() bool
- func (p *NewMomentResult) Marshal(out []byte) ([]byte, error)
- func (p *NewMomentResult) SetSuccess(x interface{})
- func (p *NewMomentResult) Size() (n int)
- func (p *NewMomentResult) Unmarshal(in []byte) error
- type SearchMomentArgs
- func (p *SearchMomentArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *SearchMomentArgs) FastWrite(buf []byte) (n int)
- func (p *SearchMomentArgs) GetFirstArgument() interface{}
- func (p *SearchMomentArgs) GetReq() *core_api.SearchMomentReq
- func (p *SearchMomentArgs) IsSetReq() bool
- func (p *SearchMomentArgs) Marshal(out []byte) ([]byte, error)
- func (p *SearchMomentArgs) Size() (n int)
- func (p *SearchMomentArgs) Unmarshal(in []byte) error
- type SearchMomentResult
- func (p *SearchMomentResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *SearchMomentResult) FastWrite(buf []byte) (n int)
- func (p *SearchMomentResult) GetResult() interface{}
- func (p *SearchMomentResult) GetSuccess() *core_api.SearchMomentResp
- func (p *SearchMomentResult) IsSetSuccess() bool
- func (p *SearchMomentResult) Marshal(out []byte) ([]byte, error)
- func (p *SearchMomentResult) SetSuccess(x interface{})
- func (p *SearchMomentResult) Size() (n int)
- func (p *SearchMomentResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DeleteMomentArgs_Req_DEFAULT *core_api.DeleteMomentReq
View Source
var DeleteMomentResult_Success_DEFAULT *core_api.DeleteMomentResp
View Source
var GetMomentDetailArgs_Req_DEFAULT *core_api.GetMomentDetailReq
View Source
var GetMomentDetailResult_Success_DEFAULT *core_api.GetMomentDetailResp
View Source
var GetMomentPreviewsArgs_Req_DEFAULT *core_api.GetMomentPreviewsReq
View Source
var GetMomentPreviewsResult_Success_DEFAULT *core_api.GetMomentPreviewsResp
View Source
var NewMomentArgs_Req_DEFAULT *core_api.NewMomentReq
View Source
var NewMomentResult_Success_DEFAULT *core_api.NewMomentResp
View Source
var SearchMomentArgs_Req_DEFAULT *core_api.SearchMomentReq
View Source
var SearchMomentResult_Success_DEFAULT *core_api.SearchMomentResp
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker 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 ¶
Types ¶
type Client ¶
type Client interface { GetMomentPreviews(ctx context.Context, Req *core_api.GetMomentPreviewsReq, callOptions ...callopt.Option) (r *core_api.GetMomentPreviewsResp, err error) GetMomentDetail(ctx context.Context, Req *core_api.GetMomentDetailReq, callOptions ...callopt.Option) (r *core_api.GetMomentDetailResp, err error) NewMoment(ctx context.Context, Req *core_api.NewMomentReq, callOptions ...callopt.Option) (r *core_api.NewMomentResp, err error) DeleteMoment(ctx context.Context, Req *core_api.DeleteMomentReq, callOptions ...callopt.Option) (r *core_api.DeleteMomentResp, err error) SearchMoment(ctx context.Context, Req *core_api.SearchMomentReq, callOptions ...callopt.Option) (r *core_api.SearchMomentResp, 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 DeleteMomentArgs ¶
type DeleteMomentArgs struct {
Req *core_api.DeleteMomentReq
}
func (*DeleteMomentArgs) FastWrite ¶
func (p *DeleteMomentArgs) FastWrite(buf []byte) (n int)
func (*DeleteMomentArgs) GetFirstArgument ¶
func (p *DeleteMomentArgs) GetFirstArgument() interface{}
func (*DeleteMomentArgs) GetReq ¶
func (p *DeleteMomentArgs) GetReq() *core_api.DeleteMomentReq
func (*DeleteMomentArgs) IsSetReq ¶
func (p *DeleteMomentArgs) IsSetReq() bool
func (*DeleteMomentArgs) Size ¶
func (p *DeleteMomentArgs) Size() (n int)
func (*DeleteMomentArgs) Unmarshal ¶
func (p *DeleteMomentArgs) Unmarshal(in []byte) error
type DeleteMomentResult ¶
type DeleteMomentResult struct {
Success *core_api.DeleteMomentResp
}
func (*DeleteMomentResult) FastWrite ¶
func (p *DeleteMomentResult) FastWrite(buf []byte) (n int)
func (*DeleteMomentResult) GetResult ¶
func (p *DeleteMomentResult) GetResult() interface{}
func (*DeleteMomentResult) GetSuccess ¶
func (p *DeleteMomentResult) GetSuccess() *core_api.DeleteMomentResp
func (*DeleteMomentResult) IsSetSuccess ¶
func (p *DeleteMomentResult) IsSetSuccess() bool
func (*DeleteMomentResult) Marshal ¶
func (p *DeleteMomentResult) Marshal(out []byte) ([]byte, error)
func (*DeleteMomentResult) SetSuccess ¶
func (p *DeleteMomentResult) SetSuccess(x interface{})
func (*DeleteMomentResult) Size ¶
func (p *DeleteMomentResult) Size() (n int)
func (*DeleteMomentResult) Unmarshal ¶
func (p *DeleteMomentResult) Unmarshal(in []byte) error
type GetMomentDetailArgs ¶
type GetMomentDetailArgs struct {
Req *core_api.GetMomentDetailReq
}
func (*GetMomentDetailArgs) FastWrite ¶
func (p *GetMomentDetailArgs) FastWrite(buf []byte) (n int)
func (*GetMomentDetailArgs) GetFirstArgument ¶
func (p *GetMomentDetailArgs) GetFirstArgument() interface{}
func (*GetMomentDetailArgs) GetReq ¶
func (p *GetMomentDetailArgs) GetReq() *core_api.GetMomentDetailReq
func (*GetMomentDetailArgs) IsSetReq ¶
func (p *GetMomentDetailArgs) IsSetReq() bool
func (*GetMomentDetailArgs) Marshal ¶
func (p *GetMomentDetailArgs) Marshal(out []byte) ([]byte, error)
func (*GetMomentDetailArgs) Size ¶
func (p *GetMomentDetailArgs) Size() (n int)
func (*GetMomentDetailArgs) Unmarshal ¶
func (p *GetMomentDetailArgs) Unmarshal(in []byte) error
type GetMomentDetailResult ¶
type GetMomentDetailResult struct {
Success *core_api.GetMomentDetailResp
}
func (*GetMomentDetailResult) FastWrite ¶
func (p *GetMomentDetailResult) FastWrite(buf []byte) (n int)
func (*GetMomentDetailResult) GetResult ¶
func (p *GetMomentDetailResult) GetResult() interface{}
func (*GetMomentDetailResult) GetSuccess ¶
func (p *GetMomentDetailResult) GetSuccess() *core_api.GetMomentDetailResp
func (*GetMomentDetailResult) IsSetSuccess ¶
func (p *GetMomentDetailResult) IsSetSuccess() bool
func (*GetMomentDetailResult) Marshal ¶
func (p *GetMomentDetailResult) Marshal(out []byte) ([]byte, error)
func (*GetMomentDetailResult) SetSuccess ¶
func (p *GetMomentDetailResult) SetSuccess(x interface{})
func (*GetMomentDetailResult) Size ¶
func (p *GetMomentDetailResult) Size() (n int)
func (*GetMomentDetailResult) Unmarshal ¶
func (p *GetMomentDetailResult) Unmarshal(in []byte) error
type GetMomentPreviewsArgs ¶
type GetMomentPreviewsArgs struct {
Req *core_api.GetMomentPreviewsReq
}
func (*GetMomentPreviewsArgs) FastWrite ¶
func (p *GetMomentPreviewsArgs) FastWrite(buf []byte) (n int)
func (*GetMomentPreviewsArgs) GetFirstArgument ¶
func (p *GetMomentPreviewsArgs) GetFirstArgument() interface{}
func (*GetMomentPreviewsArgs) GetReq ¶
func (p *GetMomentPreviewsArgs) GetReq() *core_api.GetMomentPreviewsReq
func (*GetMomentPreviewsArgs) IsSetReq ¶
func (p *GetMomentPreviewsArgs) IsSetReq() bool
func (*GetMomentPreviewsArgs) Marshal ¶
func (p *GetMomentPreviewsArgs) Marshal(out []byte) ([]byte, error)
func (*GetMomentPreviewsArgs) Size ¶
func (p *GetMomentPreviewsArgs) Size() (n int)
func (*GetMomentPreviewsArgs) Unmarshal ¶
func (p *GetMomentPreviewsArgs) Unmarshal(in []byte) error
type GetMomentPreviewsResult ¶
type GetMomentPreviewsResult struct {
Success *core_api.GetMomentPreviewsResp
}
func (*GetMomentPreviewsResult) FastWrite ¶
func (p *GetMomentPreviewsResult) FastWrite(buf []byte) (n int)
func (*GetMomentPreviewsResult) GetResult ¶
func (p *GetMomentPreviewsResult) GetResult() interface{}
func (*GetMomentPreviewsResult) GetSuccess ¶
func (p *GetMomentPreviewsResult) GetSuccess() *core_api.GetMomentPreviewsResp
func (*GetMomentPreviewsResult) IsSetSuccess ¶
func (p *GetMomentPreviewsResult) IsSetSuccess() bool
func (*GetMomentPreviewsResult) Marshal ¶
func (p *GetMomentPreviewsResult) Marshal(out []byte) ([]byte, error)
func (*GetMomentPreviewsResult) SetSuccess ¶
func (p *GetMomentPreviewsResult) SetSuccess(x interface{})
func (*GetMomentPreviewsResult) Size ¶
func (p *GetMomentPreviewsResult) Size() (n int)
func (*GetMomentPreviewsResult) Unmarshal ¶
func (p *GetMomentPreviewsResult) Unmarshal(in []byte) error
type NewMomentArgs ¶
type NewMomentArgs struct {
Req *core_api.NewMomentReq
}
func (*NewMomentArgs) FastWrite ¶
func (p *NewMomentArgs) FastWrite(buf []byte) (n int)
func (*NewMomentArgs) GetFirstArgument ¶
func (p *NewMomentArgs) GetFirstArgument() interface{}
func (*NewMomentArgs) GetReq ¶
func (p *NewMomentArgs) GetReq() *core_api.NewMomentReq
func (*NewMomentArgs) IsSetReq ¶
func (p *NewMomentArgs) IsSetReq() bool
func (*NewMomentArgs) Size ¶
func (p *NewMomentArgs) Size() (n int)
func (*NewMomentArgs) Unmarshal ¶
func (p *NewMomentArgs) Unmarshal(in []byte) error
type NewMomentResult ¶
type NewMomentResult struct {
Success *core_api.NewMomentResp
}
func (*NewMomentResult) FastWrite ¶
func (p *NewMomentResult) FastWrite(buf []byte) (n int)
func (*NewMomentResult) GetResult ¶
func (p *NewMomentResult) GetResult() interface{}
func (*NewMomentResult) GetSuccess ¶
func (p *NewMomentResult) GetSuccess() *core_api.NewMomentResp
func (*NewMomentResult) IsSetSuccess ¶
func (p *NewMomentResult) IsSetSuccess() bool
func (*NewMomentResult) SetSuccess ¶
func (p *NewMomentResult) SetSuccess(x interface{})
func (*NewMomentResult) Size ¶
func (p *NewMomentResult) Size() (n int)
func (*NewMomentResult) Unmarshal ¶
func (p *NewMomentResult) Unmarshal(in []byte) error
type SearchMomentArgs ¶
type SearchMomentArgs struct {
Req *core_api.SearchMomentReq
}
func (*SearchMomentArgs) FastWrite ¶
func (p *SearchMomentArgs) FastWrite(buf []byte) (n int)
func (*SearchMomentArgs) GetFirstArgument ¶
func (p *SearchMomentArgs) GetFirstArgument() interface{}
func (*SearchMomentArgs) GetReq ¶
func (p *SearchMomentArgs) GetReq() *core_api.SearchMomentReq
func (*SearchMomentArgs) IsSetReq ¶
func (p *SearchMomentArgs) IsSetReq() bool
func (*SearchMomentArgs) Size ¶
func (p *SearchMomentArgs) Size() (n int)
func (*SearchMomentArgs) Unmarshal ¶
func (p *SearchMomentArgs) Unmarshal(in []byte) error
type SearchMomentResult ¶
type SearchMomentResult struct {
Success *core_api.SearchMomentResp
}
func (*SearchMomentResult) FastWrite ¶
func (p *SearchMomentResult) FastWrite(buf []byte) (n int)
func (*SearchMomentResult) GetResult ¶
func (p *SearchMomentResult) GetResult() interface{}
func (*SearchMomentResult) GetSuccess ¶
func (p *SearchMomentResult) GetSuccess() *core_api.SearchMomentResp
func (*SearchMomentResult) IsSetSuccess ¶
func (p *SearchMomentResult) IsSetSuccess() bool
func (*SearchMomentResult) Marshal ¶
func (p *SearchMomentResult) Marshal(out []byte) ([]byte, error)
func (*SearchMomentResult) SetSuccess ¶
func (p *SearchMomentResult) SetSuccess(x interface{})
func (*SearchMomentResult) Size ¶
func (p *SearchMomentResult) Size() (n int)
func (*SearchMomentResult) Unmarshal ¶
func (p *SearchMomentResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.