moment

package
v0.0.0-...-9ba9bf1 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

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

func NewInvoker(handler core_api.Moment, opts ...server.Option) server.Invoker

NewInvoker creates a server.Invoker with the given handler and options.

func NewServer

func NewServer(handler core_api.Moment, 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 core_api.Moment, opts ...server.RegisterOption) error

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

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 DeleteMomentArgs

type DeleteMomentArgs struct {
	Req *core_api.DeleteMomentReq
}

func (*DeleteMomentArgs) FastRead

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

func (*DeleteMomentArgs) FastWrite

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

func (*DeleteMomentArgs) GetFirstArgument

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

func (*DeleteMomentArgs) GetReq

func (*DeleteMomentArgs) IsSetReq

func (p *DeleteMomentArgs) IsSetReq() bool

func (*DeleteMomentArgs) Marshal

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

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

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

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

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

func (*GetMomentDetailArgs) FastWrite

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

func (*GetMomentDetailArgs) GetFirstArgument

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

func (*GetMomentDetailArgs) GetReq

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

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

func (*GetMomentDetailResult) FastWrite

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

func (*GetMomentDetailResult) GetResult

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

func (*GetMomentDetailResult) GetSuccess

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

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

func (*GetMomentPreviewsArgs) FastWrite

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

func (*GetMomentPreviewsArgs) GetFirstArgument

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

func (*GetMomentPreviewsArgs) GetReq

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

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

func (*GetMomentPreviewsResult) FastWrite

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

func (*GetMomentPreviewsResult) GetResult

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

func (*GetMomentPreviewsResult) GetSuccess

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

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

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

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

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

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

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

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

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

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

func (*SearchMomentArgs) FastWrite

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

func (*SearchMomentArgs) GetFirstArgument

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

func (*SearchMomentArgs) GetReq

func (*SearchMomentArgs) IsSetReq

func (p *SearchMomentArgs) IsSetReq() bool

func (*SearchMomentArgs) Marshal

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

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

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

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

Jump to

Keyboard shortcuts

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