package
Version:
v0.0.0-...-5525a2d
Opens a new window with list of versions in this module.
Published: Jun 7, 2019
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
NDAMiddleWare makes sure they have a valid jwt and has NDA permissions
UserLogin checks the login and creates a session
WSMiddleWare checks for a JWT header to make sure thehy have access too the given topic
type Login struct {
Username string `json:"username"`
Password string `json:"password"`
}
Login is the json structure for logging in
User is the redis struction of an user
Access checks if an admin has permission to access a key
Source Files
¶
Click to show internal directories.
Click to hide internal directories.