userservice

package
v0.0.0-...-48d44df Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var CheckUserArgs_Req_DEFAULT *user_rpc.RPCCheckUserReq
View Source
var CheckUserResult_Success_DEFAULT *user_rpc.RPCCheckUserResp
View Source
var CreateUserArgs_Req_DEFAULT *user_rpc.RPCCreateUserReq
View Source
var CreateUserResult_Success_DEFAULT *user_rpc.RPCCreateUserResp
View Source
var QueryUserArgs_Req_DEFAULT *user_rpc.RPCQueryUserReq
View Source
var QueryUserResult_Success_DEFAULT *user_rpc.RPCQueryUserResp

Functions

func NewInvoker

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

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

func NewServer

func NewServer(handler user_rpc.UserService, opts ...server.Option) server.Server

NewServer creates a server.Server with the given handler and options.

func NewServiceInfo

func NewServiceInfo() *kitex.ServiceInfo

Types

type CheckUserArgs

type CheckUserArgs struct {
	Req *user_rpc.RPCCheckUserReq
}

func (*CheckUserArgs) FastRead

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

func (*CheckUserArgs) FastWrite

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

func (*CheckUserArgs) GetReq

func (p *CheckUserArgs) GetReq() *user_rpc.RPCCheckUserReq

func (*CheckUserArgs) IsSetReq

func (p *CheckUserArgs) IsSetReq() bool

func (*CheckUserArgs) Marshal

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

func (*CheckUserArgs) Size

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

func (*CheckUserArgs) Unmarshal

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

type CheckUserResult

type CheckUserResult struct {
	Success *user_rpc.RPCCheckUserResp
}

func (*CheckUserResult) FastRead

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

func (*CheckUserResult) FastWrite

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

func (*CheckUserResult) GetSuccess

func (p *CheckUserResult) GetSuccess() *user_rpc.RPCCheckUserResp

func (*CheckUserResult) IsSetSuccess

func (p *CheckUserResult) IsSetSuccess() bool

func (*CheckUserResult) Marshal

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

func (*CheckUserResult) SetSuccess

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

func (*CheckUserResult) Size

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

func (*CheckUserResult) Unmarshal

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

type Client

type Client interface {
	CreateUser(ctx context.Context, Req *user_rpc.RPCCreateUserReq, callOptions ...callopt.Option) (r *user_rpc.RPCCreateUserResp, err error)
	CheckUser(ctx context.Context, Req *user_rpc.RPCCheckUserReq, callOptions ...callopt.Option) (r *user_rpc.RPCCheckUserResp, err error)
	QueryUser(ctx context.Context, Req *user_rpc.RPCQueryUserReq, callOptions ...callopt.Option) (r *user_rpc.RPCQueryUserResp, 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 CreateUserArgs

type CreateUserArgs struct {
	Req *user_rpc.RPCCreateUserReq
}

func (*CreateUserArgs) FastRead

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

func (*CreateUserArgs) FastWrite

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

func (*CreateUserArgs) GetReq

func (*CreateUserArgs) IsSetReq

func (p *CreateUserArgs) IsSetReq() bool

func (*CreateUserArgs) Marshal

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

func (*CreateUserArgs) Size

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

func (*CreateUserArgs) Unmarshal

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

type CreateUserResult

type CreateUserResult struct {
	Success *user_rpc.RPCCreateUserResp
}

func (*CreateUserResult) FastRead

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

func (*CreateUserResult) FastWrite

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

func (*CreateUserResult) GetSuccess

func (p *CreateUserResult) GetSuccess() *user_rpc.RPCCreateUserResp

func (*CreateUserResult) IsSetSuccess

func (p *CreateUserResult) IsSetSuccess() bool

func (*CreateUserResult) Marshal

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

func (*CreateUserResult) SetSuccess

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

func (*CreateUserResult) Size

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

func (*CreateUserResult) Unmarshal

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

type QueryUserArgs

type QueryUserArgs struct {
	Req *user_rpc.RPCQueryUserReq
}

func (*QueryUserArgs) FastRead

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

func (*QueryUserArgs) FastWrite

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

func (*QueryUserArgs) GetReq

func (p *QueryUserArgs) GetReq() *user_rpc.RPCQueryUserReq

func (*QueryUserArgs) IsSetReq

func (p *QueryUserArgs) IsSetReq() bool

func (*QueryUserArgs) Marshal

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

func (*QueryUserArgs) Size

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

func (*QueryUserArgs) Unmarshal

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

type QueryUserResult

type QueryUserResult struct {
	Success *user_rpc.RPCQueryUserResp
}

func (*QueryUserResult) FastRead

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

func (*QueryUserResult) FastWrite

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

func (*QueryUserResult) GetSuccess

func (p *QueryUserResult) GetSuccess() *user_rpc.RPCQueryUserResp

func (*QueryUserResult) IsSetSuccess

func (p *QueryUserResult) IsSetSuccess() bool

func (*QueryUserResult) Marshal

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

func (*QueryUserResult) SetSuccess

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

func (*QueryUserResult) Size

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

func (*QueryUserResult) Unmarshal

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

Jump to

Keyboard shortcuts

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