userservice

package
v0.0.0-...-cb3206a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT 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 CheckUserArgs_Req_DEFAULT *user.CheckUserRequest
View Source
var CheckUserResult_Success_DEFAULT *user.CheckUserResponse
View Source
var RegisterUserArgs_Req_DEFAULT *user.RegisterUserRequest
View Source
var RegisterUserResult_Success_DEFAULT *user.RegisterUserResponse
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 CheckUserArgs

type CheckUserArgs struct {
	Req *user.CheckUserRequest
}

func (*CheckUserArgs) GetReq

func (p *CheckUserArgs) GetReq() *user.CheckUserRequest

func (*CheckUserArgs) IsSetReq

func (p *CheckUserArgs) IsSetReq() bool

func (*CheckUserArgs) Marshal

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

func (*CheckUserArgs) Unmarshal

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

type CheckUserResult

type CheckUserResult struct {
	Success *user.CheckUserResponse
}

func (*CheckUserResult) GetSuccess

func (p *CheckUserResult) GetSuccess() *user.CheckUserResponse

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

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

type Client

type Client interface {
	CheckUser(ctx context.Context, Req *user.CheckUserRequest, callOptions ...callopt.Option) (r *user.CheckUserResponse, err error)
	RegisterUser(ctx context.Context, Req *user.RegisterUserRequest, callOptions ...callopt.Option) (r *user.RegisterUserResponse, 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 RegisterUserArgs

type RegisterUserArgs struct {
	Req *user.RegisterUserRequest
}

func (*RegisterUserArgs) GetReq

func (*RegisterUserArgs) IsSetReq

func (p *RegisterUserArgs) IsSetReq() bool

func (*RegisterUserArgs) Marshal

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

func (*RegisterUserArgs) Unmarshal

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

type RegisterUserResult

type RegisterUserResult struct {
	Success *user.RegisterUserResponse
}

func (*RegisterUserResult) GetSuccess

func (p *RegisterUserResult) GetSuccess() *user.RegisterUserResponse

func (*RegisterUserResult) IsSetSuccess

func (p *RegisterUserResult) IsSetSuccess() bool

func (*RegisterUserResult) Marshal

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

func (*RegisterUserResult) SetSuccess

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

func (*RegisterUserResult) Unmarshal

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

type UserInfoArgs

type UserInfoArgs struct {
	Req *user.UserInfoRequest
}

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

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

type UserInfoResult

type UserInfoResult struct {
	Success *user.UserInfoResponse
}

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