Versions in this module Expand all Collapse all v1 v1.0.0 Jun 1, 2019 Changes in this version + func CreateAccount(newUser string) + func CreateConfig() + func DeleteAccount(user string) + func Initialize() *sqlx.DB + func RegeneratePassword(user string) + func Setup() + type AuthToken struct + AccountID int + CreatedAt time.Time + ID int + Token string + type Env struct + BlockedMimeTypes []string + DB *sqlx.DB + MaxFileSize int64 + StaticDir string + 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 struct + DB *sqlx.DB + Router *chi.Mux + func (s *Server) Run(development bool) + type User struct + CreatedAt time.Time + ID int + Password string + Username string + type UserFile struct + AccountID int + CreatedAt time.Time + ID int + Name string