usersrv

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var GetUserByIdArgs_Req_DEFAULT *user.DouyinUserRequest
View Source
var GetUserByIdResult_Success_DEFAULT *user.DouyinUserResponse
View Source
var LoginArgs_Req_DEFAULT *user.DouyinUserRegisterRequest
View Source
var LoginResult_Success_DEFAULT *user.DouyinUserRegisterResponse
View Source
var RegisterArgs_Req_DEFAULT *user.DouyinUserRegisterRequest
View Source
var RegisterResult_Success_DEFAULT *user.DouyinUserRegisterResponse

Functions

func NewInvoker

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

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

func NewServer

func NewServer(handler user.UserSrv, 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.DouyinUserRegisterRequest, callOptions ...callopt.Option) (r *user.DouyinUserRegisterResponse, err error)
	Login(ctx context.Context, Req *user.DouyinUserRegisterRequest, callOptions ...callopt.Option) (r *user.DouyinUserRegisterResponse, err error)
	GetUserById(ctx context.Context, Req *user.DouyinUserRequest, callOptions ...callopt.Option) (r *user.DouyinUserResponse, 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 GetUserByIdArgs

type GetUserByIdArgs struct {
	Req *user.DouyinUserRequest
}

func (*GetUserByIdArgs) GetReq

func (p *GetUserByIdArgs) GetReq() *user.DouyinUserRequest

func (*GetUserByIdArgs) IsSetReq

func (p *GetUserByIdArgs) IsSetReq() bool

func (*GetUserByIdArgs) Marshal

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

func (*GetUserByIdArgs) Unmarshal

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

type GetUserByIdResult

type GetUserByIdResult struct {
	Success *user.DouyinUserResponse
}

func (*GetUserByIdResult) GetSuccess

func (p *GetUserByIdResult) GetSuccess() *user.DouyinUserResponse

func (*GetUserByIdResult) IsSetSuccess

func (p *GetUserByIdResult) IsSetSuccess() bool

func (*GetUserByIdResult) Marshal

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

func (*GetUserByIdResult) SetSuccess

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

func (*GetUserByIdResult) Unmarshal

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

type LoginArgs

type LoginArgs struct {
	Req *user.DouyinUserRegisterRequest
}

func (*LoginArgs) GetReq

func (*LoginArgs) IsSetReq

func (p *LoginArgs) IsSetReq() bool

func (*LoginArgs) Marshal

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

func (*LoginArgs) Unmarshal

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

type LoginResult

type LoginResult struct {
	Success *user.DouyinUserRegisterResponse
}

func (*LoginResult) GetSuccess

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

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) Unmarshal

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

type RegisterArgs

type RegisterArgs struct {
	Req *user.DouyinUserRegisterRequest
}

func (*RegisterArgs) GetReq

func (*RegisterArgs) IsSetReq

func (p *RegisterArgs) IsSetReq() bool

func (*RegisterArgs) Marshal

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

func (*RegisterArgs) Unmarshal

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

type RegisterResult

type RegisterResult struct {
	Success *user.DouyinUserRegisterResponse
}

func (*RegisterResult) GetSuccess

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) Unmarshal

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

Jump to

Keyboard shortcuts

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