rpc

package
v0.0.0-...-dee2217 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserHandler

type UserHandler struct {
	// contains filtered or unexported fields
}

UserHandler 实现 idl 中定义的 RPC 接口

func NewUserHandler

func NewUserHandler(useCase usecase.UserUseCase) *UserHandler

func (*UserHandler) Login

func (h *UserHandler) Login(ctx context.Context, req *user.LoginRequest) (r *user.LoginResponse, err error)

func (*UserHandler) Register

func (h *UserHandler) Register(ctx context.Context, req *user.RegisterRequest) (r *user.RegisterResponse, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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