userservice

package
v0.0.0-...-f9b5f64 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT 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 LoginArgs_Req_DEFAULT *user.UserLoginRequest
View Source
var LoginResult_Success_DEFAULT *user.UserLoginResponse
View Source
var RegisterArgs_Req_DEFAULT *user.UserRegisterRequest
View Source
var RegisterResult_Success_DEFAULT *user.UserRegisterResponse
View Source
var UserInfoArgs_Req_DEFAULT *user.UserInfoRequest
View Source
var UserInfoResult_Success_DEFAULT *user.UserInfoResponse

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 {
	Register(ctx context.Context, Req *user.UserRegisterRequest, callOptions ...callopt.Option) (r *user.UserRegisterResponse, err error)
	Login(ctx context.Context, Req *user.UserLoginRequest, callOptions ...callopt.Option) (r *user.UserLoginResponse, err error)
	UserInfo(ctx context.Context, Req *user.UserInfoRequest, callOptions ...callopt.Option) (r *user.UserInfoResponse, 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 LoginArgs

type LoginArgs struct {
	Req *user.UserLoginRequest
}

func (*LoginArgs) FastRead

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

func (*LoginArgs) FastWrite

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

func (*LoginArgs) GetReq

func (p *LoginArgs) GetReq() *user.UserLoginRequest

func (*LoginArgs) IsSetReq

func (p *LoginArgs) IsSetReq() bool

func (*LoginArgs) Marshal

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

func (*LoginArgs) Size

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

func (*LoginArgs) Unmarshal

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

type LoginResult

type LoginResult struct {
	Success *user.UserLoginResponse
}

func (*LoginResult) FastRead

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

func (*LoginResult) FastWrite

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

func (*LoginResult) GetSuccess

func (p *LoginResult) GetSuccess() *user.UserLoginResponse

func (*LoginResult) IsSetSuccess

func (p *LoginResult) IsSetSuccess() bool

func (*LoginResult) Marshal

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

func (*LoginResult) SetSuccess

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

func (*LoginResult) Size

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

func (*LoginResult) Unmarshal

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

type RegisterArgs

type RegisterArgs struct {
	Req *user.UserRegisterRequest
}

func (*RegisterArgs) FastRead

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

func (*RegisterArgs) FastWrite

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

func (*RegisterArgs) GetReq

func (p *RegisterArgs) GetReq() *user.UserRegisterRequest

func (*RegisterArgs) IsSetReq

func (p *RegisterArgs) IsSetReq() bool

func (*RegisterArgs) Marshal

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

func (*RegisterArgs) Size

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

func (*RegisterArgs) Unmarshal

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

type RegisterResult

type RegisterResult struct {
	Success *user.UserRegisterResponse
}

func (*RegisterResult) FastRead

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

func (*RegisterResult) FastWrite

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

func (*RegisterResult) GetSuccess

func (p *RegisterResult) GetSuccess() *user.UserRegisterResponse

func (*RegisterResult) IsSetSuccess

func (p *RegisterResult) IsSetSuccess() bool

func (*RegisterResult) Marshal

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

func (*RegisterResult) SetSuccess

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

func (*RegisterResult) Size

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

func (*RegisterResult) Unmarshal

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

type UserInfoArgs

type UserInfoArgs struct {
	Req *user.UserInfoRequest
}

func (*UserInfoArgs) FastRead

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

func (*UserInfoArgs) FastWrite

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

func (*UserInfoArgs) GetReq

func (p *UserInfoArgs) GetReq() *user.UserInfoRequest

func (*UserInfoArgs) IsSetReq

func (p *UserInfoArgs) IsSetReq() bool

func (*UserInfoArgs) Marshal

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

func (*UserInfoArgs) Size

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

func (*UserInfoArgs) Unmarshal

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

type UserInfoResult

type UserInfoResult struct {
	Success *user.UserInfoResponse
}

func (*UserInfoResult) FastRead

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

func (*UserInfoResult) FastWrite

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

func (*UserInfoResult) GetSuccess

func (p *UserInfoResult) GetSuccess() *user.UserInfoResponse

func (*UserInfoResult) IsSetSuccess

func (p *UserInfoResult) IsSetSuccess() bool

func (*UserInfoResult) Marshal

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

func (*UserInfoResult) SetSuccess

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

func (*UserInfoResult) Size

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

func (*UserInfoResult) Unmarshal

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

Jump to

Keyboard shortcuts

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