Documentation ¶
Index ¶
- Variables
- func RandAllString(lenNum int) string
- func SetTimerTask()
- func SetUserW()
- func StartSvc()
- func StopSvc()
- type User
- type UserMap
- type UserMapName
- type UserServerGRPC
- func (u *UserServerGRPC) Cancellation(ctx context.Context, req *user.CancellationReq) (*user.CancellationResp, error)
- func (u *UserServerGRPC) GetUserList(ctx context.Context, req *user.GetUserListReq) (*user.GetUserListResp, error)
- func (u *UserServerGRPC) Login(ctx context.Context, req *user.LoginReq) (*user.LoginResp, error)
- func (u *UserServerGRPC) RegisterUser(ctx context.Context, req *user.RegisterUserReq) (*user.RegisterUserResp, error)
- func (u *UserServerGRPC) UploadImg(ctx context.Context, req *user.UploadImgReq) (*user.UploadImgResp, error)
- func (u *UserServerGRPC) UserInfo(ctx context.Context, req *user.UserInfoReq) (*user.UserInfoResp, error)
- type UserSimple
- type UserSortW
- type Users
Constants ¶
This section is empty.
Variables ¶
View Source
var CHARS = []string{"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
"1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}
View Source
var UserID uint32
Functions ¶
func RandAllString ¶
func SetTimerTask ¶
func SetTimerTask()
Types ¶
type UserServerGRPC ¶
type UserServerGRPC struct {
user.UnimplementedUserServer
}
func (*UserServerGRPC) Cancellation ¶
func (u *UserServerGRPC) Cancellation(ctx context.Context, req *user.CancellationReq) (*user.CancellationResp, error)
func (*UserServerGRPC) GetUserList ¶
func (u *UserServerGRPC) GetUserList(ctx context.Context, req *user.GetUserListReq) (*user.GetUserListResp, error)
func (*UserServerGRPC) RegisterUser ¶
func (u *UserServerGRPC) RegisterUser(ctx context.Context, req *user.RegisterUserReq) (*user.RegisterUserResp, error)
func (*UserServerGRPC) UploadImg ¶
func (u *UserServerGRPC) UploadImg(ctx context.Context, req *user.UploadImgReq) (*user.UploadImgResp, error)
func (*UserServerGRPC) UserInfo ¶
func (u *UserServerGRPC) UserInfo(ctx context.Context, req *user.UserInfoReq) (*user.UserInfoResp, error)
type UserSimple ¶
type Users ¶
type Users []*UserSimple
Click to show internal directories.
Click to hide internal directories.