userservice

package
v0.0.0-...-4036ab3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-2.0 Imports: 9 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var GetUserArgs_Req_DEFAULT *user.GetUserReq
View Source
var GetUserDetailArgs_Req_DEFAULT *user.GetUserDetailReq
View Source
var GetUserDetailResult_Success_DEFAULT *user.GetUserDetailResp
View Source
var GetUserResult_Success_DEFAULT *user.GetUserResp
View Source
var UpdateUserArgs_Req_DEFAULT *user.UpdateUserReq
View Source
var UpdateUserResult_Success_DEFAULT *user.UpdateUserResp

Functions

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

NewServiceInfo creates a new ServiceInfo containing all methods

func NewServiceInfoForClient

func NewServiceInfoForClient() *kitex.ServiceInfo

NewServiceInfo creates a new ServiceInfo containing non-streaming methods

func NewServiceInfoForStreamClient

func NewServiceInfoForStreamClient() *kitex.ServiceInfo

func RegisterService

func RegisterService(svr server.Server, handler user.UserService, opts ...server.RegisterOption) error

Types

type Client

type Client interface {
	GetUser(ctx context.Context, Req *user.GetUserReq, callOptions ...callopt.Option) (r *user.GetUserResp, err error)
	GetUserDetail(ctx context.Context, Req *user.GetUserDetailReq, callOptions ...callopt.Option) (r *user.GetUserDetailResp, err error)
	UpdateUser(ctx context.Context, Req *user.UpdateUserReq, callOptions ...callopt.Option) (r *user.UpdateUserResp, 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 GetUserArgs

type GetUserArgs struct {
	Req *user.GetUserReq
}

func (*GetUserArgs) FastRead

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

func (*GetUserArgs) FastWrite

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

func (*GetUserArgs) GetFirstArgument

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

func (*GetUserArgs) GetReq

func (p *GetUserArgs) GetReq() *user.GetUserReq

func (*GetUserArgs) IsSetReq

func (p *GetUserArgs) IsSetReq() bool

func (*GetUserArgs) Marshal

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

func (*GetUserArgs) Size

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

func (*GetUserArgs) Unmarshal

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

type GetUserDetailArgs

type GetUserDetailArgs struct {
	Req *user.GetUserDetailReq
}

func (*GetUserDetailArgs) FastRead

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

func (*GetUserDetailArgs) FastWrite

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

func (*GetUserDetailArgs) GetFirstArgument

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

func (*GetUserDetailArgs) GetReq

func (*GetUserDetailArgs) IsSetReq

func (p *GetUserDetailArgs) IsSetReq() bool

func (*GetUserDetailArgs) Marshal

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

func (*GetUserDetailArgs) Size

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

func (*GetUserDetailArgs) Unmarshal

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

type GetUserDetailResult

type GetUserDetailResult struct {
	Success *user.GetUserDetailResp
}

func (*GetUserDetailResult) FastRead

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

func (*GetUserDetailResult) FastWrite

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

func (*GetUserDetailResult) GetResult

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

func (*GetUserDetailResult) GetSuccess

func (p *GetUserDetailResult) GetSuccess() *user.GetUserDetailResp

func (*GetUserDetailResult) IsSetSuccess

func (p *GetUserDetailResult) IsSetSuccess() bool

func (*GetUserDetailResult) Marshal

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

func (*GetUserDetailResult) SetSuccess

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

func (*GetUserDetailResult) Size

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

func (*GetUserDetailResult) Unmarshal

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

type GetUserResult

type GetUserResult struct {
	Success *user.GetUserResp
}

func (*GetUserResult) FastRead

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

func (*GetUserResult) FastWrite

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

func (*GetUserResult) GetResult

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

func (*GetUserResult) GetSuccess

func (p *GetUserResult) GetSuccess() *user.GetUserResp

func (*GetUserResult) IsSetSuccess

func (p *GetUserResult) IsSetSuccess() bool

func (*GetUserResult) Marshal

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

func (*GetUserResult) SetSuccess

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

func (*GetUserResult) Size

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

func (*GetUserResult) Unmarshal

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

type UpdateUserArgs

type UpdateUserArgs struct {
	Req *user.UpdateUserReq
}

func (*UpdateUserArgs) FastRead

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

func (*UpdateUserArgs) FastWrite

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

func (*UpdateUserArgs) GetFirstArgument

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

func (*UpdateUserArgs) GetReq

func (p *UpdateUserArgs) GetReq() *user.UpdateUserReq

func (*UpdateUserArgs) IsSetReq

func (p *UpdateUserArgs) IsSetReq() bool

func (*UpdateUserArgs) Marshal

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

func (*UpdateUserArgs) Size

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

func (*UpdateUserArgs) Unmarshal

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

type UpdateUserResult

type UpdateUserResult struct {
	Success *user.UpdateUserResp
}

func (*UpdateUserResult) FastRead

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

func (*UpdateUserResult) FastWrite

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

func (*UpdateUserResult) GetResult

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

func (*UpdateUserResult) GetSuccess

func (p *UpdateUserResult) GetSuccess() *user.UpdateUserResp

func (*UpdateUserResult) IsSetSuccess

func (p *UpdateUserResult) IsSetSuccess() bool

func (*UpdateUserResult) Marshal

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

func (*UpdateUserResult) SetSuccess

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

func (*UpdateUserResult) Size

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

func (*UpdateUserResult) Unmarshal

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

Jump to

Keyboard shortcuts

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