userservice

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var CacelFollowArgs_Req_DEFAULT *user.RelationActionRequest
View Source
var CacelFollowResult_Success_DEFAULT *user.BaseResponse
View Source
var CheckUserArgs_Req_DEFAULT *user.CheckUserRequest
View Source
var CheckUserResult_Success_DEFAULT *user.CheckUserResponse
View Source
var CreateUserArgs_Req_DEFAULT *user.CreateUserRequest
View Source
var CreateUserResult_Success_DEFAULT *user.CreateUserResponse
View Source
var FollowArgs_Req_DEFAULT *user.RelationActionRequest
View Source
var FollowResult_Success_DEFAULT *user.BaseResponse
View Source
var GetUserArgs_Req_DEFAULT *user.GetUserRequest
View Source
var GetUserResult_Success_DEFAULT *user.GetUserResponse
View Source
var MGetFansUserArgs_Req_DEFAULT *user.MGetRelationUserRequest
View Source
var MGetFansUserResult_Success_DEFAULT *user.MGetRelationUserResponse
View Source
var MGetFollowUserArgs_Req_DEFAULT *user.MGetRelationUserRequest
View Source
var MGetFollowUserResult_Success_DEFAULT *user.MGetRelationUserResponse
View Source
var MGetUserArgs_Req_DEFAULT *user.MGetUserRequest
View Source
var MGetUserResult_Success_DEFAULT *user.MGetUserResponse

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 CacelFollowArgs

type CacelFollowArgs struct {
	Req *user.RelationActionRequest
}

func (*CacelFollowArgs) GetReq

func (*CacelFollowArgs) IsSetReq

func (p *CacelFollowArgs) IsSetReq() bool

func (*CacelFollowArgs) Marshal

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

func (*CacelFollowArgs) Unmarshal

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

type CacelFollowResult

type CacelFollowResult struct {
	Success *user.BaseResponse
}

func (*CacelFollowResult) GetSuccess

func (p *CacelFollowResult) GetSuccess() *user.BaseResponse

func (*CacelFollowResult) IsSetSuccess

func (p *CacelFollowResult) IsSetSuccess() bool

func (*CacelFollowResult) Marshal

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

func (*CacelFollowResult) SetSuccess

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

func (*CacelFollowResult) Unmarshal

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

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 {
	CreateUser(ctx context.Context, Req *user.CreateUserRequest, callOptions ...callopt.Option) (r *user.CreateUserResponse, err error)
	MGetUser(ctx context.Context, Req *user.MGetUserRequest, callOptions ...callopt.Option) (r *user.MGetUserResponse, err error)
	GetUser(ctx context.Context, Req *user.GetUserRequest, callOptions ...callopt.Option) (r *user.GetUserResponse, err error)
	CheckUser(ctx context.Context, Req *user.CheckUserRequest, callOptions ...callopt.Option) (r *user.CheckUserResponse, err error)
	Follow(ctx context.Context, Req *user.RelationActionRequest, callOptions ...callopt.Option) (r *user.BaseResponse, err error)
	CacelFollow(ctx context.Context, Req *user.RelationActionRequest, callOptions ...callopt.Option) (r *user.BaseResponse, err error)
	MGetFollowUser(ctx context.Context, Req *user.MGetRelationUserRequest, callOptions ...callopt.Option) (r *user.MGetRelationUserResponse, err error)
	MGetFansUser(ctx context.Context, Req *user.MGetRelationUserRequest, callOptions ...callopt.Option) (r *user.MGetRelationUserResponse, 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 *user.CreateUserRequest
}

func (*CreateUserArgs) GetReq

func (p *CreateUserArgs) GetReq() *user.CreateUserRequest

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 *user.CreateUserResponse
}

func (*CreateUserResult) GetSuccess

func (p *CreateUserResult) GetSuccess() *user.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 FollowArgs

type FollowArgs struct {
	Req *user.RelationActionRequest
}

func (*FollowArgs) GetReq

func (p *FollowArgs) GetReq() *user.RelationActionRequest

func (*FollowArgs) IsSetReq

func (p *FollowArgs) IsSetReq() bool

func (*FollowArgs) Marshal

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

func (*FollowArgs) Unmarshal

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

type FollowResult

type FollowResult struct {
	Success *user.BaseResponse
}

func (*FollowResult) GetSuccess

func (p *FollowResult) GetSuccess() *user.BaseResponse

func (*FollowResult) IsSetSuccess

func (p *FollowResult) IsSetSuccess() bool

func (*FollowResult) Marshal

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

func (*FollowResult) SetSuccess

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

func (*FollowResult) Unmarshal

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

type GetUserArgs

type GetUserArgs struct {
	Req *user.GetUserRequest
}

func (*GetUserArgs) GetReq

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

func (*GetUserArgs) IsSetReq

func (p *GetUserArgs) IsSetReq() bool

func (*GetUserArgs) Marshal

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

func (*GetUserArgs) Unmarshal

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

type GetUserResult

type GetUserResult struct {
	Success *user.GetUserResponse
}

func (*GetUserResult) GetSuccess

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

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

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

type MGetFansUserArgs

type MGetFansUserArgs struct {
	Req *user.MGetRelationUserRequest
}

func (*MGetFansUserArgs) GetReq

func (*MGetFansUserArgs) IsSetReq

func (p *MGetFansUserArgs) IsSetReq() bool

func (*MGetFansUserArgs) Marshal

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

func (*MGetFansUserArgs) Unmarshal

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

type MGetFansUserResult

type MGetFansUserResult struct {
	Success *user.MGetRelationUserResponse
}

func (*MGetFansUserResult) GetSuccess

func (*MGetFansUserResult) IsSetSuccess

func (p *MGetFansUserResult) IsSetSuccess() bool

func (*MGetFansUserResult) Marshal

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

func (*MGetFansUserResult) SetSuccess

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

func (*MGetFansUserResult) Unmarshal

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

type MGetFollowUserArgs

type MGetFollowUserArgs struct {
	Req *user.MGetRelationUserRequest
}

func (*MGetFollowUserArgs) GetReq

func (*MGetFollowUserArgs) IsSetReq

func (p *MGetFollowUserArgs) IsSetReq() bool

func (*MGetFollowUserArgs) Marshal

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

func (*MGetFollowUserArgs) Unmarshal

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

type MGetFollowUserResult

type MGetFollowUserResult struct {
	Success *user.MGetRelationUserResponse
}

func (*MGetFollowUserResult) GetSuccess

func (*MGetFollowUserResult) IsSetSuccess

func (p *MGetFollowUserResult) IsSetSuccess() bool

func (*MGetFollowUserResult) Marshal

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

func (*MGetFollowUserResult) SetSuccess

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

func (*MGetFollowUserResult) Unmarshal

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

type MGetUserArgs

type MGetUserArgs struct {
	Req *user.MGetUserRequest
}

func (*MGetUserArgs) GetReq

func (p *MGetUserArgs) GetReq() *user.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 *user.MGetUserResponse
}

func (*MGetUserResult) GetSuccess

func (p *MGetUserResult) GetSuccess() *user.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