user

package
v0.0.0-...-1482656 Latest Latest
Warning

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

Go to latest
Published: Apr 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 GetUserInfoArgs_Req_DEFAULT *core_api.GetUserInfoReq
View Source
var GetUserInfoResult_Success_DEFAULT *core_api.GetUserInfoResp
View Source
var SearchUserArgs_Req_DEFAULT *core_api.SearchUserReq
View Source
var SearchUserResult_Success_DEFAULT *core_api.SearchUserResp
View Source
var UpdateUserInfoArgs_Req_DEFAULT *core_api.UpdateUserInfoReq
View Source
var UpdateUserInfoResult_Success_DEFAULT *core_api.UpdateUserInfoResp

Functions

func NewInvoker

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

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

func NewServer

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

Types

type Client

type Client interface {
	GetUserInfo(ctx context.Context, Req *core_api.GetUserInfoReq, callOptions ...callopt.Option) (r *core_api.GetUserInfoResp, err error)
	UpdateUserInfo(ctx context.Context, Req *core_api.UpdateUserInfoReq, callOptions ...callopt.Option) (r *core_api.UpdateUserInfoResp, err error)
	SearchUser(ctx context.Context, Req *core_api.SearchUserReq, callOptions ...callopt.Option) (r *core_api.SearchUserResp, 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 GetUserInfoArgs

type GetUserInfoArgs struct {
	Req *core_api.GetUserInfoReq
}

func (*GetUserInfoArgs) FastRead

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

func (*GetUserInfoArgs) FastWrite

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

func (*GetUserInfoArgs) GetFirstArgument

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

func (*GetUserInfoArgs) GetReq

func (*GetUserInfoArgs) IsSetReq

func (p *GetUserInfoArgs) IsSetReq() bool

func (*GetUserInfoArgs) Marshal

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

func (*GetUserInfoArgs) Size

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

func (*GetUserInfoArgs) Unmarshal

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

type GetUserInfoResult

type GetUserInfoResult struct {
	Success *core_api.GetUserInfoResp
}

func (*GetUserInfoResult) FastRead

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

func (*GetUserInfoResult) FastWrite

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

func (*GetUserInfoResult) GetResult

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

func (*GetUserInfoResult) GetSuccess

func (p *GetUserInfoResult) GetSuccess() *core_api.GetUserInfoResp

func (*GetUserInfoResult) IsSetSuccess

func (p *GetUserInfoResult) IsSetSuccess() bool

func (*GetUserInfoResult) Marshal

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

func (*GetUserInfoResult) SetSuccess

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

func (*GetUserInfoResult) Size

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

func (*GetUserInfoResult) Unmarshal

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

type SearchUserArgs

type SearchUserArgs struct {
	Req *core_api.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() *core_api.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 *core_api.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() *core_api.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 UpdateUserInfoArgs

type UpdateUserInfoArgs struct {
	Req *core_api.UpdateUserInfoReq
}

func (*UpdateUserInfoArgs) FastRead

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

func (*UpdateUserInfoArgs) FastWrite

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

func (*UpdateUserInfoArgs) GetFirstArgument

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

func (*UpdateUserInfoArgs) GetReq

func (*UpdateUserInfoArgs) IsSetReq

func (p *UpdateUserInfoArgs) IsSetReq() bool

func (*UpdateUserInfoArgs) Marshal

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

func (*UpdateUserInfoArgs) Size

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

func (*UpdateUserInfoArgs) Unmarshal

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

type UpdateUserInfoResult

type UpdateUserInfoResult struct {
	Success *core_api.UpdateUserInfoResp
}

func (*UpdateUserInfoResult) FastRead

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

func (*UpdateUserInfoResult) FastWrite

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

func (*UpdateUserInfoResult) GetResult

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

func (*UpdateUserInfoResult) GetSuccess

func (*UpdateUserInfoResult) IsSetSuccess

func (p *UpdateUserInfoResult) IsSetSuccess() bool

func (*UpdateUserInfoResult) Marshal

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

func (*UpdateUserInfoResult) SetSuccess

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

func (*UpdateUserInfoResult) Size

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

func (*UpdateUserInfoResult) Unmarshal

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

Jump to

Keyboard shortcuts

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