userservice

package
v0.0.0-...-312508d Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var DoLikeArgs_Req_DEFAULT *user.DoLikeReq
View Source
var DoLikeResult_Success_DEFAULT *user.DoLikeResp
View Source
var GetLikedUsersArgs_Req_DEFAULT *user.GetLikedUsersReq
View Source
var GetLikedUsersResult_Success_DEFAULT *user.GetLikedUsersResp
View Source
var GetTargetLikesArgs_Req_DEFAULT *user.GetTargetLikesReq
View Source
var GetTargetLikesResult_Success_DEFAULT *user.GetTargetLikesResp
View Source
var GetUserArgs_Req_DEFAULT *user.GetUserReq
View Source
var GetUserDetailArgs_Req_DEFAULT *user.GetUserDetailReq
View Source
var GetUserDetailResult_Success_DEFAULT *user.GetUserDetailResp
View Source
var GetUserLikeArgs_Req_DEFAULT *user.GetUserLikedReq
View Source
var GetUserLikeResult_Success_DEFAULT *user.GetUserLikedResp
View Source
var GetUserLikesArgs_Req_DEFAULT *user.GetUserLikesReq
View Source
var GetUserLikesResult_Success_DEFAULT *user.GetUserLikesResp
View Source
var GetUserResult_Success_DEFAULT *user.GetUserResp
View Source
var SearchUserArgs_Req_DEFAULT *user.SearchUserReq
View Source
var SearchUserResult_Success_DEFAULT *user.SearchUserResp
View Source
var UpdateUserArgs_Req_DEFAULT *user.UpdateUserReq
View Source
var UpdateUserResult_Success_DEFAULT *user.UpdateUserResp

Functions

func NewInvoker

func NewInvoker(handler user.UserService, opts ...server.Option) server.Invoker

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

func NewServer

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

Types

type Client

type Client interface {
	GetUser(ctx context.Context, Req *user.GetUserReq, callOptions ...callopt.Option) (r *user.GetUserResp, err error)
	GetUserDetail(ctx context.Context, Req *user.GetUserDetailReq, callOptions ...callopt.Option) (r *user.GetUserDetailResp, err error)
	UpdateUser(ctx context.Context, Req *user.UpdateUserReq, callOptions ...callopt.Option) (r *user.UpdateUserResp, err error)
	SearchUser(ctx context.Context, Req *user.SearchUserReq, callOptions ...callopt.Option) (r *user.SearchUserResp, err error)
	DoLike(ctx context.Context, Req *user.DoLikeReq, callOptions ...callopt.Option) (r *user.DoLikeResp, err error)
	GetUserLike(ctx context.Context, Req *user.GetUserLikedReq, callOptions ...callopt.Option) (r *user.GetUserLikedResp, err error)
	GetTargetLikes(ctx context.Context, Req *user.GetTargetLikesReq, callOptions ...callopt.Option) (r *user.GetTargetLikesResp, err error)
	GetUserLikes(ctx context.Context, Req *user.GetUserLikesReq, callOptions ...callopt.Option) (r *user.GetUserLikesResp, err error)
	GetLikedUsers(ctx context.Context, Req *user.GetLikedUsersReq, callOptions ...callopt.Option) (r *user.GetLikedUsersResp, 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 DoLikeArgs

type DoLikeArgs struct {
	Req *user.DoLikeReq
}

func (*DoLikeArgs) FastRead

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

func (*DoLikeArgs) FastWrite

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

func (*DoLikeArgs) GetFirstArgument

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

func (*DoLikeArgs) GetReq

func (p *DoLikeArgs) GetReq() *user.DoLikeReq

func (*DoLikeArgs) IsSetReq

func (p *DoLikeArgs) IsSetReq() bool

func (*DoLikeArgs) Marshal

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

func (*DoLikeArgs) Size

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

func (*DoLikeArgs) Unmarshal

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

type DoLikeResult

type DoLikeResult struct {
	Success *user.DoLikeResp
}

func (*DoLikeResult) FastRead

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

func (*DoLikeResult) FastWrite

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

func (*DoLikeResult) GetResult

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

func (*DoLikeResult) GetSuccess

func (p *DoLikeResult) GetSuccess() *user.DoLikeResp

func (*DoLikeResult) IsSetSuccess

func (p *DoLikeResult) IsSetSuccess() bool

func (*DoLikeResult) Marshal

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

func (*DoLikeResult) SetSuccess

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

func (*DoLikeResult) Size

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

func (*DoLikeResult) Unmarshal

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

type GetLikedUsersArgs

type GetLikedUsersArgs struct {
	Req *user.GetLikedUsersReq
}

func (*GetLikedUsersArgs) FastRead

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

func (*GetLikedUsersArgs) FastWrite

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

func (*GetLikedUsersArgs) GetFirstArgument

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

func (*GetLikedUsersArgs) GetReq

func (*GetLikedUsersArgs) IsSetReq

func (p *GetLikedUsersArgs) IsSetReq() bool

func (*GetLikedUsersArgs) Marshal

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

func (*GetLikedUsersArgs) Size

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

func (*GetLikedUsersArgs) Unmarshal

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

type GetLikedUsersResult

type GetLikedUsersResult struct {
	Success *user.GetLikedUsersResp
}

func (*GetLikedUsersResult) FastRead

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

func (*GetLikedUsersResult) FastWrite

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

func (*GetLikedUsersResult) GetResult

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

func (*GetLikedUsersResult) GetSuccess

func (p *GetLikedUsersResult) GetSuccess() *user.GetLikedUsersResp

func (*GetLikedUsersResult) IsSetSuccess

func (p *GetLikedUsersResult) IsSetSuccess() bool

func (*GetLikedUsersResult) Marshal

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

func (*GetLikedUsersResult) SetSuccess

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

func (*GetLikedUsersResult) Size

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

func (*GetLikedUsersResult) Unmarshal

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

type GetTargetLikesArgs

type GetTargetLikesArgs struct {
	Req *user.GetTargetLikesReq
}

func (*GetTargetLikesArgs) FastRead

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

func (*GetTargetLikesArgs) FastWrite

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

func (*GetTargetLikesArgs) GetFirstArgument

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

func (*GetTargetLikesArgs) GetReq

func (*GetTargetLikesArgs) IsSetReq

func (p *GetTargetLikesArgs) IsSetReq() bool

func (*GetTargetLikesArgs) Marshal

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

func (*GetTargetLikesArgs) Size

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

func (*GetTargetLikesArgs) Unmarshal

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

type GetTargetLikesResult

type GetTargetLikesResult struct {
	Success *user.GetTargetLikesResp
}

func (*GetTargetLikesResult) FastRead

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

func (*GetTargetLikesResult) FastWrite

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

func (*GetTargetLikesResult) GetResult

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

func (*GetTargetLikesResult) GetSuccess

func (p *GetTargetLikesResult) GetSuccess() *user.GetTargetLikesResp

func (*GetTargetLikesResult) IsSetSuccess

func (p *GetTargetLikesResult) IsSetSuccess() bool

func (*GetTargetLikesResult) Marshal

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

func (*GetTargetLikesResult) SetSuccess

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

func (*GetTargetLikesResult) Size

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

func (*GetTargetLikesResult) Unmarshal

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

type GetUserArgs

type GetUserArgs struct {
	Req *user.GetUserReq
}

func (*GetUserArgs) FastRead

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

func (*GetUserArgs) FastWrite

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

func (*GetUserArgs) GetFirstArgument

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

func (*GetUserArgs) GetReq

func (p *GetUserArgs) GetReq() *user.GetUserReq

func (*GetUserArgs) IsSetReq

func (p *GetUserArgs) IsSetReq() bool

func (*GetUserArgs) Marshal

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

func (*GetUserArgs) Size

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

func (*GetUserArgs) Unmarshal

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

type GetUserDetailArgs

type GetUserDetailArgs struct {
	Req *user.GetUserDetailReq
}

func (*GetUserDetailArgs) FastRead

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

func (*GetUserDetailArgs) FastWrite

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

func (*GetUserDetailArgs) GetFirstArgument

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

func (*GetUserDetailArgs) GetReq

func (*GetUserDetailArgs) IsSetReq

func (p *GetUserDetailArgs) IsSetReq() bool

func (*GetUserDetailArgs) Marshal

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

func (*GetUserDetailArgs) Size

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

func (*GetUserDetailArgs) Unmarshal

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

type GetUserDetailResult

type GetUserDetailResult struct {
	Success *user.GetUserDetailResp
}

func (*GetUserDetailResult) FastRead

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

func (*GetUserDetailResult) FastWrite

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

func (*GetUserDetailResult) GetResult

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

func (*GetUserDetailResult) GetSuccess

func (p *GetUserDetailResult) GetSuccess() *user.GetUserDetailResp

func (*GetUserDetailResult) IsSetSuccess

func (p *GetUserDetailResult) IsSetSuccess() bool

func (*GetUserDetailResult) Marshal

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

func (*GetUserDetailResult) SetSuccess

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

func (*GetUserDetailResult) Size

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

func (*GetUserDetailResult) Unmarshal

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

type GetUserLikeArgs

type GetUserLikeArgs struct {
	Req *user.GetUserLikedReq
}

func (*GetUserLikeArgs) FastRead

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

func (*GetUserLikeArgs) FastWrite

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

func (*GetUserLikeArgs) GetFirstArgument

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

func (*GetUserLikeArgs) GetReq

func (p *GetUserLikeArgs) GetReq() *user.GetUserLikedReq

func (*GetUserLikeArgs) IsSetReq

func (p *GetUserLikeArgs) IsSetReq() bool

func (*GetUserLikeArgs) Marshal

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

func (*GetUserLikeArgs) Size

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

func (*GetUserLikeArgs) Unmarshal

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

type GetUserLikeResult

type GetUserLikeResult struct {
	Success *user.GetUserLikedResp
}

func (*GetUserLikeResult) FastRead

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

func (*GetUserLikeResult) FastWrite

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

func (*GetUserLikeResult) GetResult

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

func (*GetUserLikeResult) GetSuccess

func (p *GetUserLikeResult) GetSuccess() *user.GetUserLikedResp

func (*GetUserLikeResult) IsSetSuccess

func (p *GetUserLikeResult) IsSetSuccess() bool

func (*GetUserLikeResult) Marshal

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

func (*GetUserLikeResult) SetSuccess

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

func (*GetUserLikeResult) Size

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

func (*GetUserLikeResult) Unmarshal

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

type GetUserLikesArgs

type GetUserLikesArgs struct {
	Req *user.GetUserLikesReq
}

func (*GetUserLikesArgs) FastRead

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

func (*GetUserLikesArgs) FastWrite

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

func (*GetUserLikesArgs) GetFirstArgument

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

func (*GetUserLikesArgs) GetReq

func (p *GetUserLikesArgs) GetReq() *user.GetUserLikesReq

func (*GetUserLikesArgs) IsSetReq

func (p *GetUserLikesArgs) IsSetReq() bool

func (*GetUserLikesArgs) Marshal

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

func (*GetUserLikesArgs) Size

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

func (*GetUserLikesArgs) Unmarshal

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

type GetUserLikesResult

type GetUserLikesResult struct {
	Success *user.GetUserLikesResp
}

func (*GetUserLikesResult) FastRead

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

func (*GetUserLikesResult) FastWrite

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

func (*GetUserLikesResult) GetResult

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

func (*GetUserLikesResult) GetSuccess

func (p *GetUserLikesResult) GetSuccess() *user.GetUserLikesResp

func (*GetUserLikesResult) IsSetSuccess

func (p *GetUserLikesResult) IsSetSuccess() bool

func (*GetUserLikesResult) Marshal

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

func (*GetUserLikesResult) SetSuccess

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

func (*GetUserLikesResult) Size

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

func (*GetUserLikesResult) Unmarshal

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

type GetUserResult

type GetUserResult struct {
	Success *user.GetUserResp
}

func (*GetUserResult) FastRead

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

func (*GetUserResult) FastWrite

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

func (*GetUserResult) GetResult

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

func (*GetUserResult) GetSuccess

func (p *GetUserResult) GetSuccess() *user.GetUserResp

func (*GetUserResult) IsSetSuccess

func (p *GetUserResult) IsSetSuccess() bool

func (*GetUserResult) Marshal

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

func (*GetUserResult) SetSuccess

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

func (*GetUserResult) Size

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

func (*GetUserResult) Unmarshal

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

type SearchUserArgs

type SearchUserArgs struct {
	Req *user.SearchUserReq
}

func (*SearchUserArgs) FastRead

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

func (*SearchUserArgs) FastWrite

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

func (*SearchUserArgs) GetFirstArgument

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

func (*SearchUserArgs) GetReq

func (p *SearchUserArgs) GetReq() *user.SearchUserReq

func (*SearchUserArgs) IsSetReq

func (p *SearchUserArgs) IsSetReq() bool

func (*SearchUserArgs) Marshal

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

func (*SearchUserArgs) Size

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

func (*SearchUserArgs) Unmarshal

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

type SearchUserResult

type SearchUserResult struct {
	Success *user.SearchUserResp
}

func (*SearchUserResult) FastRead

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

func (*SearchUserResult) FastWrite

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

func (*SearchUserResult) GetResult

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

func (*SearchUserResult) GetSuccess

func (p *SearchUserResult) GetSuccess() *user.SearchUserResp

func (*SearchUserResult) IsSetSuccess

func (p *SearchUserResult) IsSetSuccess() bool

func (*SearchUserResult) Marshal

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

func (*SearchUserResult) SetSuccess

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

func (*SearchUserResult) Size

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

func (*SearchUserResult) Unmarshal

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

type UpdateUserArgs

type UpdateUserArgs struct {
	Req *user.UpdateUserReq
}

func (*UpdateUserArgs) FastRead

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

func (*UpdateUserArgs) FastWrite

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

func (*UpdateUserArgs) GetFirstArgument

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

func (*UpdateUserArgs) GetReq

func (p *UpdateUserArgs) GetReq() *user.UpdateUserReq

func (*UpdateUserArgs) IsSetReq

func (p *UpdateUserArgs) IsSetReq() bool

func (*UpdateUserArgs) Marshal

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

func (*UpdateUserArgs) Size

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

func (*UpdateUserArgs) Unmarshal

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

type UpdateUserResult

type UpdateUserResult struct {
	Success *user.UpdateUserResp
}

func (*UpdateUserResult) FastRead

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

func (*UpdateUserResult) FastWrite

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

func (*UpdateUserResult) GetResult

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

func (*UpdateUserResult) GetSuccess

func (p *UpdateUserResult) GetSuccess() *user.UpdateUserResp

func (*UpdateUserResult) IsSetSuccess

func (p *UpdateUserResult) IsSetSuccess() bool

func (*UpdateUserResult) Marshal

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

func (*UpdateUserResult) SetSuccess

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

func (*UpdateUserResult) Size

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

func (*UpdateUserResult) Unmarshal

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

Jump to

Keyboard shortcuts

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