package
Version:
v0.0.0-...-f07e814
Opens a new window with list of versions in this module.
Published: Dec 17, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthUserInfo struct {
Login string `json:"login"`
Pswd string `json:"pswd"`
}
type DocEntry struct {
ID string `json:"id" db:"id"`
Name string `json:"name" db:"title"`
Mime string `json:"mime" db:"mime"`
IsFile bool `json:"file"`
Public bool `json:"public" db:"is_public"`
Created time.Time `json:"created" db:"created_at"`
Granted []string `json:"grant"`
}
type DocMeta struct {
Name string `json:"name"`
File bool `json:"file"`
Public bool `json:"public"`
Token string `json:"token"`
Mime string `json:"mime"`
Grant []string `json:"grant"`
}
type GetDoc struct {
Mime string `db:"mime" json:"mime"`
Name string `db:"title" json:"title"`
Public bool `db:"is_public" json:"public"`
Owner string `db:"owner" json:"owner"`
IsFile bool `db:"file" json:"is_file"`
}
type ListInfo struct {
Token string `json:"token"`
Login string `json:"login"`
Key string `json:"key"`
Value string `json:"value"`
Limit int `json:"limit"`
}
type RegisterUserInfo struct {
Login string `json:"login"`
Pswd string `json:"pswd"`
}
type RmDoc struct {
ID string `db:"id"`
Name string `db:"title"`
}
type User struct {
ID int `db:"id"`
Login string `db:"login"`
PswdHash string `db:"password_hash"`
}
type UserSecret struct {
Login string `db:"login"`
ValidUntil time.Time `db:"valid_until"`
Token string `db:"token"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.