Commit Graph

16 Commits

Author SHA1 Message Date
Benjamin Morrison dd3d87bd97
delete a user, new config option for admin pass. pass is bcrypt hashed on startup and not stored in plaintext. 2021-10-21 21:35:23 -04:00
Ben Morrison 538e305925
updating module to live at sourcehut
Also moving the 'registry' library into this repo, rather
than maintaining them separately. It will still be decoupled,
just live in this repository.
2020-06-20 02:27:31 -04:00
Ben Morrison f13255f2e6
license notice at top of each file 2019-07-11 00:57:06 -04:00
Ben Morrison df8fa27ffa
on SIGINT, push to DB before shutting down
also logging elapsed time for DB pulls
2019-06-13 23:58:22 -04:00
Ben Morrison fdd9bd02f9
cache and db now use time.Ticker for events. refactored some initialization. 2019-06-11 04:54:50 -04:00
Ben Morrison 930ef34596
adding fs sync after db push 2019-06-11 04:54:43 -04:00
Ben Morrison a5a32e7a31
split db-specific funcs into separate files 2019-06-08 02:29:33 -04:00
Ben Morrison 78f4d8a6c1
sqlite functionality added 2019-06-08 02:29:28 -04:00
Ben Morrison 3eb5a0321e
added User.RLen to leveldb push/pull 2019-06-08 02:29:24 -04:00
Ben Morrison 6c1b09bbeb
cleaned up error handling 2019-06-08 02:29:23 -04:00
Ben Morrison 5fa9ec1b63
working on adding sqlite 2019-06-08 02:29:21 -04:00
Ben Morrison e9d4a6b0e8
database refs and static assets concurrency-safe 2019-06-08 02:29:20 -04:00
Ben Morrison 469542518c
moved type declarations into respective files 2019-06-08 02:29:17 -04:00
Ben Morrison 1a15258ee5
renamed functions 2019-06-06 02:22:54 -04:00
Ben Morrison 439695f552
moved initDatabase() to db.go 2019-06-06 01:23:44 -04:00
Ben Morrison fd43c61bd1
moved bulk of code to its own package to clean up source tree 2019-06-05 15:36:23 -04:00