Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Protected = 2
View Source
var WriteProtected = 1
Functions ¶
func ComparePassword ¶
ComparePassword compares a hash and a password, returning true on match
Types ¶
type Claims ¶
type Claims struct { NotebookID string `json:"notebook_id"` jwt.StandardClaims }
type Issuer ¶
type Issuer struct {
SigningKey []byte
}
type ProtectionLevel ¶
type ProtectionLevel uint8
func (ProtectionLevel) Protected ¶
func (p ProtectionLevel) Protected() bool
Protected checks if notebook is protected, meaning authentication is required to see and motify its contents.
func (ProtectionLevel) WriteProtected ¶
func (p ProtectionLevel) WriteProtected() bool
WriteProtected checks if notebook is protected against writes, i.e. is read only by unauthenticated users.
Click to show internal directories.
Click to hide internal directories.