userservice

package
v0.0.0-...-712232d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var CheckUserArgs_Req_DEFAULT *userdemo.CheckUserRequest
View Source
var CheckUserResult_Success_DEFAULT *userdemo.CheckUserResponse
View Source
var CreateUserArgs_Req_DEFAULT *userdemo.CreateUserRequest
View Source
var CreateUserResult_Success_DEFAULT *userdemo.CreateUserResponse
View Source
var MGetUserArgs_Req_DEFAULT *userdemo.MGetUserRequest
View Source
var MGetUserResult_Success_DEFAULT *userdemo.MGetUserResponse

Functions

func NewInvoker

func NewInvoker(handler userdemo.UserService, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler userdemo.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 *userdemo.CheckUserRequest
}

func (*CheckUserArgs) GetReq

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 *userdemo.CheckUserResponse
}

func (*CheckUserResult) GetSuccess

func (p *CheckUserResult) GetSuccess() *userdemo.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 {
	CreateUser(ctx context.Context, Req *userdemo.CreateUserRequest, callOptions ...callopt.Option) (r *userdemo.CreateUserResponse, err error)
	MGetUser(ctx context.Context, Req *userdemo.MGetUserRequest, callOptions ...callopt.Option) (r *userdemo.MGetUserResponse, err error)
	CheckUser(ctx context.Context, Req *userdemo.CheckUserRequest, callOptions ...callopt.Option) (r *userdemo.CheckUserResponse, 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 CreateUserArgs

type CreateUserArgs struct {
	Req *userdemo.CreateUserRequest
}

func (*CreateUserArgs) GetReq

func (*CreateUserArgs) IsSetReq

func (p *CreateUserArgs) IsSetReq() bool

func (*CreateUserArgs) Marshal

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

func (*CreateUserArgs) Unmarshal

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

type CreateUserResult

type CreateUserResult struct {
	Success *userdemo.CreateUserResponse
}

func (*CreateUserResult) GetSuccess

func (p *CreateUserResult) GetSuccess() *userdemo.CreateUserResponse

func (*CreateUserResult) IsSetSuccess

func (p *CreateUserResult) IsSetSuccess() bool

func (*CreateUserResult) Marshal

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

func (*CreateUserResult) SetSuccess

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

func (*CreateUserResult) Unmarshal

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

type MGetUserArgs

type MGetUserArgs struct {
	Req *userdemo.MGetUserRequest
}

func (*MGetUserArgs) GetReq

func (p *MGetUserArgs) GetReq() *userdemo.MGetUserRequest

func (*MGetUserArgs) IsSetReq

func (p *MGetUserArgs) IsSetReq() bool

func (*MGetUserArgs) Marshal

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

func (*MGetUserArgs) Unmarshal

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

type MGetUserResult

type MGetUserResult struct {
	Success *userdemo.MGetUserResponse
}

func (*MGetUserResult) GetSuccess

func (p *MGetUserResult) GetSuccess() *userdemo.MGetUserResponse

func (*MGetUserResult) IsSetSuccess

func (p *MGetUserResult) IsSetSuccess() bool

func (*MGetUserResult) Marshal

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

func (*MGetUserResult) SetSuccess

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

func (*MGetUserResult) Unmarshal

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

Jump to

Keyboard shortcuts

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