collection

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 CreateImageArgs_Req_DEFAULT *core_api.CreateImageReq
View Source
var CreateImageResult_Success_DEFAULT *core_api.CreateImageResp
View Source
var DeleteCatArgs_Req_DEFAULT *core_api.DeleteCatReq
View Source
var DeleteCatResult_Success_DEFAULT *core_api.DeleteCatResp
View Source
var DeleteImageArgs_Req_DEFAULT *core_api.DeleteImageReq
View Source
var DeleteImageResult_Success_DEFAULT *core_api.DeleteImageResp
View Source
var GetCatDetailArgs_Req_DEFAULT *core_api.GetCatDetailReq
View Source
var GetCatDetailResult_Success_DEFAULT *core_api.GetCatDetailResp
View Source
var GetCatPreviewsArgs_Req_DEFAULT *core_api.GetCatPreviewsReq
View Source
var GetCatPreviewsResult_Success_DEFAULT *core_api.GetCatPreviewsResp
View Source
var GetImageByCatArgs_Req_DEFAULT *core_api.GetImageByCatReq
View Source
var GetImageByCatResult_Success_DEFAULT *core_api.GetImageByCatResp
View Source
var NewCatArgs_Req_DEFAULT *core_api.NewCatReq
View Source
var NewCatResult_Success_DEFAULT *core_api.NewCatResp
View Source
var SearchCatArgs_Req_DEFAULT *core_api.SearchCatReq
View Source
var SearchCatResult_Success_DEFAULT *core_api.SearchCatResp

Functions

func NewInvoker

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

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

func NewServer

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

Types

type Client

type Client interface {
	GetCatPreviews(ctx context.Context, Req *core_api.GetCatPreviewsReq, callOptions ...callopt.Option) (r *core_api.GetCatPreviewsResp, err error)
	GetCatDetail(ctx context.Context, Req *core_api.GetCatDetailReq, callOptions ...callopt.Option) (r *core_api.GetCatDetailResp, err error)
	NewCat(ctx context.Context, Req *core_api.NewCatReq, callOptions ...callopt.Option) (r *core_api.NewCatResp, err error)
	DeleteCat(ctx context.Context, Req *core_api.DeleteCatReq, callOptions ...callopt.Option) (r *core_api.DeleteCatResp, err error)
	SearchCat(ctx context.Context, Req *core_api.SearchCatReq, callOptions ...callopt.Option) (r *core_api.SearchCatResp, err error)
	CreateImage(ctx context.Context, Req *core_api.CreateImageReq, callOptions ...callopt.Option) (r *core_api.CreateImageResp, err error)
	DeleteImage(ctx context.Context, Req *core_api.DeleteImageReq, callOptions ...callopt.Option) (r *core_api.DeleteImageResp, err error)
	GetImageByCat(ctx context.Context, Req *core_api.GetImageByCatReq, callOptions ...callopt.Option) (r *core_api.GetImageByCatResp, 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 CreateImageArgs

type CreateImageArgs struct {
	Req *core_api.CreateImageReq
}

func (*CreateImageArgs) FastRead

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

func (*CreateImageArgs) FastWrite

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

func (*CreateImageArgs) GetFirstArgument

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

func (*CreateImageArgs) GetReq

func (*CreateImageArgs) IsSetReq

func (p *CreateImageArgs) IsSetReq() bool

func (*CreateImageArgs) Marshal

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

func (*CreateImageArgs) Size

func (p *CreateImageArgs) Size() (n int)

func (*CreateImageArgs) Unmarshal

func (p *CreateImageArgs) Unmarshal(in []byte) error

type CreateImageResult

type CreateImageResult struct {
	Success *core_api.CreateImageResp
}

func (*CreateImageResult) FastRead

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

func (*CreateImageResult) FastWrite

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

func (*CreateImageResult) GetResult

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

func (*CreateImageResult) GetSuccess

func (p *CreateImageResult) GetSuccess() *core_api.CreateImageResp

func (*CreateImageResult) IsSetSuccess

func (p *CreateImageResult) IsSetSuccess() bool

func (*CreateImageResult) Marshal

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

func (*CreateImageResult) SetSuccess

func (p *CreateImageResult) SetSuccess(x interface{})

func (*CreateImageResult) Size

func (p *CreateImageResult) Size() (n int)

func (*CreateImageResult) Unmarshal

func (p *CreateImageResult) Unmarshal(in []byte) error

type DeleteCatArgs

type DeleteCatArgs struct {
	Req *core_api.DeleteCatReq
}

func (*DeleteCatArgs) FastRead

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

func (*DeleteCatArgs) FastWrite

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

func (*DeleteCatArgs) GetFirstArgument

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

func (*DeleteCatArgs) GetReq

func (p *DeleteCatArgs) GetReq() *core_api.DeleteCatReq

func (*DeleteCatArgs) IsSetReq

func (p *DeleteCatArgs) IsSetReq() bool

func (*DeleteCatArgs) Marshal

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

func (*DeleteCatArgs) Size

func (p *DeleteCatArgs) Size() (n int)

func (*DeleteCatArgs) Unmarshal

func (p *DeleteCatArgs) Unmarshal(in []byte) error

type DeleteCatResult

type DeleteCatResult struct {
	Success *core_api.DeleteCatResp
}

func (*DeleteCatResult) FastRead

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

func (*DeleteCatResult) FastWrite

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

func (*DeleteCatResult) GetResult

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

func (*DeleteCatResult) GetSuccess

func (p *DeleteCatResult) GetSuccess() *core_api.DeleteCatResp

func (*DeleteCatResult) IsSetSuccess

func (p *DeleteCatResult) IsSetSuccess() bool

func (*DeleteCatResult) Marshal

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

func (*DeleteCatResult) SetSuccess

func (p *DeleteCatResult) SetSuccess(x interface{})

func (*DeleteCatResult) Size

func (p *DeleteCatResult) Size() (n int)

func (*DeleteCatResult) Unmarshal

func (p *DeleteCatResult) Unmarshal(in []byte) error

type DeleteImageArgs

type DeleteImageArgs struct {
	Req *core_api.DeleteImageReq
}

func (*DeleteImageArgs) FastRead

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

func (*DeleteImageArgs) FastWrite

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

func (*DeleteImageArgs) GetFirstArgument

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

func (*DeleteImageArgs) GetReq

func (*DeleteImageArgs) IsSetReq

func (p *DeleteImageArgs) IsSetReq() bool

func (*DeleteImageArgs) Marshal

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

func (*DeleteImageArgs) Size

func (p *DeleteImageArgs) Size() (n int)

func (*DeleteImageArgs) Unmarshal

func (p *DeleteImageArgs) Unmarshal(in []byte) error

type DeleteImageResult

type DeleteImageResult struct {
	Success *core_api.DeleteImageResp
}

func (*DeleteImageResult) FastRead

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

func (*DeleteImageResult) FastWrite

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

func (*DeleteImageResult) GetResult

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

func (*DeleteImageResult) GetSuccess

func (p *DeleteImageResult) GetSuccess() *core_api.DeleteImageResp

func (*DeleteImageResult) IsSetSuccess

func (p *DeleteImageResult) IsSetSuccess() bool

func (*DeleteImageResult) Marshal

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

func (*DeleteImageResult) SetSuccess

func (p *DeleteImageResult) SetSuccess(x interface{})

func (*DeleteImageResult) Size

func (p *DeleteImageResult) Size() (n int)

func (*DeleteImageResult) Unmarshal

func (p *DeleteImageResult) Unmarshal(in []byte) error

type GetCatDetailArgs

type GetCatDetailArgs struct {
	Req *core_api.GetCatDetailReq
}

func (*GetCatDetailArgs) FastRead

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

func (*GetCatDetailArgs) FastWrite

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

func (*GetCatDetailArgs) GetFirstArgument

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

func (*GetCatDetailArgs) GetReq

func (*GetCatDetailArgs) IsSetReq

func (p *GetCatDetailArgs) IsSetReq() bool

func (*GetCatDetailArgs) Marshal

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

func (*GetCatDetailArgs) Size

func (p *GetCatDetailArgs) Size() (n int)

func (*GetCatDetailArgs) Unmarshal

func (p *GetCatDetailArgs) Unmarshal(in []byte) error

type GetCatDetailResult

type GetCatDetailResult struct {
	Success *core_api.GetCatDetailResp
}

func (*GetCatDetailResult) FastRead

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

func (*GetCatDetailResult) FastWrite

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

func (*GetCatDetailResult) GetResult

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

func (*GetCatDetailResult) GetSuccess

func (p *GetCatDetailResult) GetSuccess() *core_api.GetCatDetailResp

func (*GetCatDetailResult) IsSetSuccess

func (p *GetCatDetailResult) IsSetSuccess() bool

func (*GetCatDetailResult) Marshal

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

func (*GetCatDetailResult) SetSuccess

func (p *GetCatDetailResult) SetSuccess(x interface{})

func (*GetCatDetailResult) Size

func (p *GetCatDetailResult) Size() (n int)

func (*GetCatDetailResult) Unmarshal

func (p *GetCatDetailResult) Unmarshal(in []byte) error

type GetCatPreviewsArgs

type GetCatPreviewsArgs struct {
	Req *core_api.GetCatPreviewsReq
}

func (*GetCatPreviewsArgs) FastRead

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

func (*GetCatPreviewsArgs) FastWrite

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

func (*GetCatPreviewsArgs) GetFirstArgument

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

func (*GetCatPreviewsArgs) GetReq

func (*GetCatPreviewsArgs) IsSetReq

func (p *GetCatPreviewsArgs) IsSetReq() bool

func (*GetCatPreviewsArgs) Marshal

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

func (*GetCatPreviewsArgs) Size

func (p *GetCatPreviewsArgs) Size() (n int)

func (*GetCatPreviewsArgs) Unmarshal

func (p *GetCatPreviewsArgs) Unmarshal(in []byte) error

type GetCatPreviewsResult

type GetCatPreviewsResult struct {
	Success *core_api.GetCatPreviewsResp
}

func (*GetCatPreviewsResult) FastRead

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

func (*GetCatPreviewsResult) FastWrite

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

func (*GetCatPreviewsResult) GetResult

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

func (*GetCatPreviewsResult) GetSuccess

func (*GetCatPreviewsResult) IsSetSuccess

func (p *GetCatPreviewsResult) IsSetSuccess() bool

func (*GetCatPreviewsResult) Marshal

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

func (*GetCatPreviewsResult) SetSuccess

func (p *GetCatPreviewsResult) SetSuccess(x interface{})

func (*GetCatPreviewsResult) Size

func (p *GetCatPreviewsResult) Size() (n int)

func (*GetCatPreviewsResult) Unmarshal

func (p *GetCatPreviewsResult) Unmarshal(in []byte) error

type GetImageByCatArgs

type GetImageByCatArgs struct {
	Req *core_api.GetImageByCatReq
}

func (*GetImageByCatArgs) FastRead

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

func (*GetImageByCatArgs) FastWrite

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

func (*GetImageByCatArgs) GetFirstArgument

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

func (*GetImageByCatArgs) GetReq

func (*GetImageByCatArgs) IsSetReq

func (p *GetImageByCatArgs) IsSetReq() bool

func (*GetImageByCatArgs) Marshal

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

func (*GetImageByCatArgs) Size

func (p *GetImageByCatArgs) Size() (n int)

func (*GetImageByCatArgs) Unmarshal

func (p *GetImageByCatArgs) Unmarshal(in []byte) error

type GetImageByCatResult

type GetImageByCatResult struct {
	Success *core_api.GetImageByCatResp
}

func (*GetImageByCatResult) FastRead

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

func (*GetImageByCatResult) FastWrite

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

func (*GetImageByCatResult) GetResult

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

func (*GetImageByCatResult) GetSuccess

func (*GetImageByCatResult) IsSetSuccess

func (p *GetImageByCatResult) IsSetSuccess() bool

func (*GetImageByCatResult) Marshal

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

func (*GetImageByCatResult) SetSuccess

func (p *GetImageByCatResult) SetSuccess(x interface{})

func (*GetImageByCatResult) Size

func (p *GetImageByCatResult) Size() (n int)

func (*GetImageByCatResult) Unmarshal

func (p *GetImageByCatResult) Unmarshal(in []byte) error

type NewCatArgs

type NewCatArgs struct {
	Req *core_api.NewCatReq
}

func (*NewCatArgs) FastRead

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

func (*NewCatArgs) FastWrite

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

func (*NewCatArgs) GetFirstArgument

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

func (*NewCatArgs) GetReq

func (p *NewCatArgs) GetReq() *core_api.NewCatReq

func (*NewCatArgs) IsSetReq

func (p *NewCatArgs) IsSetReq() bool

func (*NewCatArgs) Marshal

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

func (*NewCatArgs) Size

func (p *NewCatArgs) Size() (n int)

func (*NewCatArgs) Unmarshal

func (p *NewCatArgs) Unmarshal(in []byte) error

type NewCatResult

type NewCatResult struct {
	Success *core_api.NewCatResp
}

func (*NewCatResult) FastRead

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

func (*NewCatResult) FastWrite

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

func (*NewCatResult) GetResult

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

func (*NewCatResult) GetSuccess

func (p *NewCatResult) GetSuccess() *core_api.NewCatResp

func (*NewCatResult) IsSetSuccess

func (p *NewCatResult) IsSetSuccess() bool

func (*NewCatResult) Marshal

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

func (*NewCatResult) SetSuccess

func (p *NewCatResult) SetSuccess(x interface{})

func (*NewCatResult) Size

func (p *NewCatResult) Size() (n int)

func (*NewCatResult) Unmarshal

func (p *NewCatResult) Unmarshal(in []byte) error

type SearchCatArgs

type SearchCatArgs struct {
	Req *core_api.SearchCatReq
}

func (*SearchCatArgs) FastRead

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

func (*SearchCatArgs) FastWrite

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

func (*SearchCatArgs) GetFirstArgument

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

func (*SearchCatArgs) GetReq

func (p *SearchCatArgs) GetReq() *core_api.SearchCatReq

func (*SearchCatArgs) IsSetReq

func (p *SearchCatArgs) IsSetReq() bool

func (*SearchCatArgs) Marshal

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

func (*SearchCatArgs) Size

func (p *SearchCatArgs) Size() (n int)

func (*SearchCatArgs) Unmarshal

func (p *SearchCatArgs) Unmarshal(in []byte) error

type SearchCatResult

type SearchCatResult struct {
	Success *core_api.SearchCatResp
}

func (*SearchCatResult) FastRead

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

func (*SearchCatResult) FastWrite

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

func (*SearchCatResult) GetResult

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

func (*SearchCatResult) GetSuccess

func (p *SearchCatResult) GetSuccess() *core_api.SearchCatResp

func (*SearchCatResult) IsSetSuccess

func (p *SearchCatResult) IsSetSuccess() bool

func (*SearchCatResult) Marshal

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

func (*SearchCatResult) SetSuccess

func (p *SearchCatResult) SetSuccess(x interface{})

func (*SearchCatResult) Size

func (p *SearchCatResult) Size() (n int)

func (*SearchCatResult) Unmarshal

func (p *SearchCatResult) Unmarshal(in []byte) error

Jump to

Keyboard shortcuts

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