userservice

package
v0.0.0-...-49721f6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var GetUserArgs_Req_DEFAULT *user.UserRequest
View Source
var GetUserResult_Success_DEFAULT *user.UserResponse
View Source
var UserLoginArgs_Req_DEFAULT *user.UserLoRegRequest
View Source
var UserLoginResult_Success_DEFAULT *user.UserLoRegResponse
View Source
var UserRegisterArgs_Req_DEFAULT *user.UserLoRegRequest
View Source
var UserRegisterResult_Success_DEFAULT *user.UserLoRegResponse

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

Types

type Client

type Client interface {
	GetUser(ctx context.Context, Req *user.UserRequest, callOptions ...callopt.Option) (r *user.UserResponse, err error)
	UserLogin(ctx context.Context, Req *user.UserLoRegRequest, callOptions ...callopt.Option) (r *user.UserLoRegResponse, err error)
	UserRegister(ctx context.Context, Req *user.UserLoRegRequest, callOptions ...callopt.Option) (r *user.UserLoRegResponse, 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 GetUserArgs

type GetUserArgs struct {
	Req *user.UserRequest
}

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.UserRequest

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 GetUserResult

type GetUserResult struct {
	Success *user.UserResponse
}

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.UserResponse

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 UserLoginArgs

type UserLoginArgs struct {
	Req *user.UserLoRegRequest
}

func (*UserLoginArgs) FastRead

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

func (*UserLoginArgs) FastWrite

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

func (*UserLoginArgs) GetFirstArgument

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

func (*UserLoginArgs) GetReq

func (p *UserLoginArgs) GetReq() *user.UserLoRegRequest

func (*UserLoginArgs) IsSetReq

func (p *UserLoginArgs) IsSetReq() bool

func (*UserLoginArgs) Marshal

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

func (*UserLoginArgs) Size

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

func (*UserLoginArgs) Unmarshal

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

type UserLoginResult

type UserLoginResult struct {
	Success *user.UserLoRegResponse
}

func (*UserLoginResult) FastRead

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

func (*UserLoginResult) FastWrite

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

func (*UserLoginResult) GetResult

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

func (*UserLoginResult) GetSuccess

func (p *UserLoginResult) GetSuccess() *user.UserLoRegResponse

func (*UserLoginResult) IsSetSuccess

func (p *UserLoginResult) IsSetSuccess() bool

func (*UserLoginResult) Marshal

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

func (*UserLoginResult) SetSuccess

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

func (*UserLoginResult) Size

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

func (*UserLoginResult) Unmarshal

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

type UserRegisterArgs

type UserRegisterArgs struct {
	Req *user.UserLoRegRequest
}

func (*UserRegisterArgs) FastRead

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

func (*UserRegisterArgs) FastWrite

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

func (*UserRegisterArgs) GetFirstArgument

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

func (*UserRegisterArgs) GetReq

func (p *UserRegisterArgs) GetReq() *user.UserLoRegRequest

func (*UserRegisterArgs) IsSetReq

func (p *UserRegisterArgs) IsSetReq() bool

func (*UserRegisterArgs) Marshal

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

func (*UserRegisterArgs) Size

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

func (*UserRegisterArgs) Unmarshal

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

type UserRegisterResult

type UserRegisterResult struct {
	Success *user.UserLoRegResponse
}

func (*UserRegisterResult) FastRead

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

func (*UserRegisterResult) FastWrite

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

func (*UserRegisterResult) GetResult

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

func (*UserRegisterResult) GetSuccess

func (p *UserRegisterResult) GetSuccess() *user.UserLoRegResponse

func (*UserRegisterResult) IsSetSuccess

func (p *UserRegisterResult) IsSetSuccess() bool

func (*UserRegisterResult) Marshal

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

func (*UserRegisterResult) SetSuccess

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

func (*UserRegisterResult) Size

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

func (*UserRegisterResult) Unmarshal

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

Jump to

Keyboard shortcuts

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