handler

package
v0.0.0-...-5447790 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenToken

func GenToken(username string) string

GenToken : 生成token

Types

type User

type User struct{}

User : 用于实现UserServiceHandler接口的对象

func (*User) Signin

func (u *User) Signin(ctx context.Context, req *proto.ReqSignin, res *proto.RespSignin) error

Signin : 处理用户登录请求

func (*User) Signup

func (u *User) Signup(ctx context.Context, req *proto.ReqSignup, res *proto.RespSignup) error

Signup : 处理用户注册请求

func (*User) UserFileRename

func (u *User) UserFileRename(ctx context.Context, req *proto.ReqUserFileRename, res *proto.RespUserFileRename) error

UserFiles : 用户文件重命名

func (*User) UserFiles

func (u *User) UserFiles(ctx context.Context, req *proto.ReqUserFile, res *proto.RespUserFile) error

UserFiles : 获取用户文件列表

func (*User) UserInfo

func (u *User) UserInfo(ctx context.Context, req *proto.ReqUserInfo, res *proto.RespUserInfo) error

UserInfo : 查询用户信息

Jump to

Keyboard shortcuts

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