Documentation ¶
Index ¶
- func CreateAccount(newUser string)
- func CreateConfig()
- func DeleteAccount(user string)
- func Initialize() *sqlx.DB
- func RegeneratePassword(user string)
- func Setup()
- type AuthToken
- type Env
- func (e *Env) AuthMiddleware(next http.Handler) http.Handler
- func (e *Env) CreateAuthToken(w http.ResponseWriter, r *http.Request)
- func (e *Env) DeleteFile(w http.ResponseWriter, r *http.Request)
- func (e *Env) GetFile(w http.ResponseWriter, r *http.Request)
- func (e *Env) ShowIndex(w http.ResponseWriter, r *http.Request)
- func (e *Env) UploadFile(w http.ResponseWriter, r *http.Request)
- type Server
- type User
- type UserFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccount ¶
func CreateAccount(newUser string)
CreateAccount creates an account using the supplied username, then returns a randomly generated password.
func DeleteAccount ¶
func DeleteAccount(user string)
DeleteAccount deletes an account using the supplied username
func RegeneratePassword ¶
func RegeneratePassword(user string)
RegeneratePassword creates a new password for the supplied username
Types ¶
type Env ¶
func (*Env) CreateAuthToken ¶
func (e *Env) CreateAuthToken(w http.ResponseWriter, r *http.Request)
func (*Env) DeleteFile ¶
func (e *Env) DeleteFile(w http.ResponseWriter, r *http.Request)
func (*Env) UploadFile ¶
func (e *Env) UploadFile(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.