userservice

package
v0.0.0-...-978cf5a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var LoginArgs_Req_DEFAULT *user.LoginReq
View Source
var LoginResult_Success_DEFAULT *user.LoginResp
View Source
var RegisterArgs_Req_DEFAULT *user.RegisterReq
View Source
var RegisterResult_Success_DEFAULT *user.RegisterResp

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.RegisterReq, callOptions ...callopt.Option) (r *user.RegisterResp, err error)
	Login(ctx context.Context, Req *user.LoginReq, callOptions ...callopt.Option) (r *user.LoginResp, 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.LoginReq
}

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

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

func (*LoginArgs) GetReq

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

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.LoginResp
}

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

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

func (*LoginResult) GetSuccess

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

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.RegisterReq
}

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

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

func (*RegisterArgs) GetReq

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

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.RegisterResp
}

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

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

func (*RegisterResult) GetSuccess

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

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

Jump to

Keyboard shortcuts

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