service

package
v0.0.0-...-540b577 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JwtService = new(jwtService)
View Source
var UserService = new(UserServiceT)

Functions

func WebSocketHandel

func WebSocketHandel(uid string, w http.ResponseWriter, req *http.Request)

Types

type JWTClaim

type JWTClaim struct {
	jwt.StandardClaims
}

type JwtUser

type JwtUser interface {
	GetID() string
}

type UserServiceT

type UserServiceT struct {
}

func (*UserServiceT) Login

func (s *UserServiceT) Login(email, password string) (string, error)

Login 登录

func (*UserServiceT) Register

func (s *UserServiceT) Register() (string, error)

Register 注册

Jump to

Keyboard shortcuts

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