summaryrefslogtreecommitdiff
path: root/vendor
AgeCommit message (Collapse)AuthorFiles
2022-05-18[performance] Add further indexes to mitigate laggy queries (#586)Libravatar tobi233
* start adding more indexes as a migration * update sqlite version
2022-05-15[security] transport.Controller{} and transport.Transport{} security and ↵Libravatar kim9
performance improvements (#564) * cache transports in controller by privkey-generated pubkey, add retry logic to transport requests Signed-off-by: kim <grufwub@gmail.com> * update code comments, defer mutex unlocks Signed-off-by: kim <grufwub@gmail.com> * add count to 'performing request' log message Signed-off-by: kim <grufwub@gmail.com> * reduce repeated conversions of same url.URL object Signed-off-by: kim <grufwub@gmail.com> * move worker.Worker to concurrency subpackage, add WorkQueue type, limit transport http client use by WorkQueue Signed-off-by: kim <grufwub@gmail.com> * fix security advisories regarding max outgoing conns, max rsp body size - implemented by a new httpclient.Client{} that wraps an underlying client with a queue to limit connections, and limit reader wrapping a response body with a configured maximum size - update pub.HttpClient args passed around to be this new httpclient.Client{} Signed-off-by: kim <grufwub@gmail.com> * add httpclient tests, move ip validation to separate package + change mechanism Signed-off-by: kim <grufwub@gmail.com> * fix merge conflicts Signed-off-by: kim <grufwub@gmail.com> * use singular mutex in transport rather than separate signer mus Signed-off-by: kim <grufwub@gmail.com> * improved useragent string Signed-off-by: kim <grufwub@gmail.com> * add note regarding missing test Signed-off-by: kim <grufwub@gmail.com> * remove useragent field from transport (instead store in controller) Signed-off-by: kim <grufwub@gmail.com> * shutup linter Signed-off-by: kim <grufwub@gmail.com> * reset other signing headers on each loop iteration Signed-off-by: kim <grufwub@gmail.com> * respect request ctx during retry-backoff sleep period Signed-off-by: kim <grufwub@gmail.com> * use external pkg with docs explaining performance "hack" Signed-off-by: kim <grufwub@gmail.com> * use http package constants instead of string method literals Signed-off-by: kim <grufwub@gmail.com> * add license file headers Signed-off-by: kim <grufwub@gmail.com> * update code comment to match new func names Signed-off-by: kim <grufwub@gmail.com> * updates to user-agent string Signed-off-by: kim <grufwub@gmail.com> * update signed testrig models to fit with new transport logic (instead uses separate signer now) Signed-off-by: kim <grufwub@gmail.com> * fuck you linter Signed-off-by: kim <grufwub@gmail.com>
2022-05-08[bugfix] Fix remote media pruning failing if media already gone (#548)Libravatar tobi46
* fix error check of prune to allow missing files * update go-store library, add test for pruning item with db entry but no file Signed-off-by: kim <grufwub@gmail.com> * remove now-unneccessary error check Signed-off-by: kim <grufwub@gmail.com> Co-authored-by: kim <grufwub@gmail.com>
2022-05-02[chore] Update all but bun libraries (#526)Libravatar kim347
* update all but bun libraries Signed-off-by: kim <grufwub@gmail.com> * remove my personal build script changes Signed-off-by: kim <grufwub@gmail.com>
2022-04-28Add support for running profiling when debug build-tags provided (#491)Libravatar kim10
* wrap root HTTP handler in debug.WithPprof(), rearrange router.Start() to support this * remove unused code * set debug buildtag in build script when $DEBUG set * update go-debug version with fixed handler * use clone of router.srv for LE cert manager, reset server timeouts in debug * add kim's other libraries to README
2022-04-28[bugfix] Fix possible race condition in federatingdb (#490)Libravatar kim7
Signed-off-by: kim <grufwub@gmail.com>
2022-04-24[chore] Update bun and sqlite dependencies (#478)Libravatar tobi244
* update bun + sqlite versions * step bun to v1.1.3
2022-04-05[dependency] Update superseriousbusiness/activity dependency (#446)Libravatar tobi3
* bump superseriousbusiness/activity version * fetch list of follower inbox iris
2022-04-02[chore] Update Go version to 1.18 (#444)Libravatar tobi1
* linting with new golangci-lint version * update go to 1.18 * bump versions in drone.yml * use new runtime/debug package for version info * remove Commit build flag from goreleaser * remove mock commit + version from build script * go fmt * add dummy version env flag to test container * install git in golang container for testing * only set versionString if Version is defined
2022-03-21[bugfix] Fix images not being processed correctly sometimes (#437)Libravatar tobi14
* bump exif-terminator to latest version * add and test giant turnip from turnip.farm * don't error if content property is nil
2022-03-08[dependencies] update go-store, go-mutexes (#422)Libravatar kim11
* update go-store, go-mutexes Signed-off-by: kim <grufwub@gmail.com> * update vendored code Signed-off-by: kim <grufwub@gmail.com>
2022-03-07[feature] Clean up/uncache remote media (#407)Libravatar tobi382
* Add whereNotEmptyAndNotNull * Add GetRemoteOlderThanDays * Add GetRemoteOlderThanDays * Add PruneRemote to Manager interface * Start implementing PruneRemote * add new attachment + status to tests * fix up and test GetRemoteOlderThan * fix bad import * PruneRemote: return number pruned * add Cached column to mediaattachment * update + test pruneRemote * update mediaTest * use Cached column * upstep bun to latest version * embed structs in mediaAttachment * migrate mediaAttachment to new format * don't default cached to true * select only remote media * update db dependencies * step bun back to last working version * update pruneRemote to use Cached field * fix storage path of test attachments * add recache logic to manager * fix trimmed aspect ratio * test prune and recache * return errwithcode * tidy up different paths for emoji vs attachment * fix incorrect thumbnail type being stored * expose TransportController to media processor * implement tee-ing recached content * add thoughts of dog to test fedi attachments * test get remote files * add comment on PruneRemote * add postData cleanup to recache * test thumbnail fetching * add incredible diagram * go mod tidy * buffer pipes for recache streaming * test for client stops reading after 1kb * add media-remote-cache-days to config * add cron package * wrap logrus so it's available to cron * start and stop cron jobs gracefully
2022-02-19[feature] Gin enable gzip encoding (#405)Libravatar tobi6
* add gin gzip dependency * add gzip middleware to router * go mod tidy
2022-01-29update go-store to latestLibravatar tsmethurst6
2022-01-24upgrade go-storeLibravatar tsmethurst42
2022-01-23use exif-terminatorLibravatar tsmethurst114
2022-01-16update dependenciesLibravatar tsmethurst53
2022-01-03add gruf worker poolLibravatar tsmethurst7
2021-12-20Update codeberg.org/gruf libraries and fix go-store issue (#347)Libravatar kim13
* update codeberg.org/gruf/ libraries Signed-off-by: kim <grufwub@gmail.com> * another update Signed-off-by: kim <grufwub@gmail.com>
2021-12-12Add optional syslog logrus hook (#343)Libravatar tobi19
* add optional syslog logrus hook * document syslog
2021-12-12Upstep Go dependencies (#340)Libravatar tobi157
* Upstep Go dependencies * tiny linter fix * Tidy
2021-12-07Implement Cobra CLI tooling, Viper config tooling (#336)Libravatar tobi278
* start pulling out + replacing urfave and config * replace many many instances of config * move more stuff => viper * properly remove urfave * move some flags to root command * add testrig commands to root * alias config file keys * start adding cli parsing tests * reorder viper init * remove config path alias * fmt * change config file keys to non-nested * we're more or less in business now * tidy up the common func * go fmt * get tests passing again * add note about the cliparsing tests * reorganize * update docs with changes * structure cmd dir better * rename + move some files around * fix dangling comma
2021-11-27Update dependencies (#333)Libravatar tobi845
2021-11-13move to ssb gofed fork (#298)Libravatar tobi738
2021-11-13update dependencies (#296)Libravatar tobi102
2021-10-24upstep bun to v1.0.14 (#291)Libravatar tobi98
2021-09-29upstep bun to v1.0.9 (#252)Libravatar tobi51
2021-09-23upstep bun version (#243)Libravatar tobi21
2021-09-13update my personal library versions (#220)Libravatar kim4
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-11add git.iim.gay/grufwub/go-store for storage backend, replacing blob.StorageLibravatar kim (grufwub)63
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-11update bun library to latest commit (#206)Libravatar kim8
* update bun library to latest commit Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update to latest bun release Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-10Test both dbs (#205)Libravatar tobi1
* move scripts, allow testing both dbs with one cmd * tidy + vendor * update test.sh to ignore cache * put test commands directly in drone.yml * change CONTRIBUTING slightly * go ham on the readme
2021-09-10migrate go version to 1.17 (#203)Libravatar tobi277
* migrate go version to 1.17 * update contributing
2021-09-09Import export (#194)Libravatar tobi8
* start with export/import code * messing about with decoding/encoding * some more fiddling * stuff is WORKING * working pretty alright! * go fmt * fix up tests, add docs * start backup/restore doc * tweaks * credits * update advancedVisibility settings * update bun library -> v1.0.4 Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update oauth library -> v4.3.1-SSB Signed-off-by: kim (grufwub) <grufwub@gmail.com> * handle oauth token scope, fix user.SigninCount + token.UserID Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update oauth library --> v4.3.2-SSB Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update sqlite library -> v1.13.0 Signed-off-by: kim (grufwub) <grufwub@gmail.com> * review changes * start with export/import code * messing about with decoding/encoding * some more fiddling * stuff is WORKING * working pretty alright! * go fmt * fix up tests, add docs * start backup/restore doc * tweaks * credits * update advancedVisibility settings * review changes Co-authored-by: kim (grufwub) <grufwub@gmail.com> Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
2021-09-08Merge pull request #198 from NyaaaWhatsUpDoc/update/sqlite-libraryLibravatar kim101
Update/sqlite library
2021-09-08Merge remote-tracking branch 'upstream/main' into update/sqlite-libraryLibravatar kim (grufwub)31
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-08update sqlite library -> v1.13.0Libravatar kim (grufwub)155
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-08Merge remote-tracking branch 'upstream/main' into update/oauth-libraryLibravatar kim (grufwub)85
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-08update oauth library --> v4.3.2-SSBLibravatar kim (grufwub)2
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-08update oauth library -> v4.3.1-SSBLibravatar kim (grufwub)30
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-08update bun library -> v1.0.4Libravatar kim (grufwub)85
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-01more updatesLibravatar tsmethurst4
2021-08-29Add SQLite support, fix un-thread-safe DB caches, small performance f… (#172)Libravatar kim695
* Add SQLite support, fix un-thread-safe DB caches, small performance fixes Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add SQLite licenses to README Signed-off-by: kim (grufwub) <grufwub@gmail.com> * appease the linter, and fix my dumbass-ery Signed-off-by: kim (grufwub) <grufwub@gmail.com> * make requested changes Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add back comment Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-25Pg to bun (#148)Libravatar tobi459
* start moving to bun * changing more stuff * more * and yet more * tests passing * seems stable now * more big changes * small fix * little fixes
2021-08-23Manually approves followers (#146)Libravatar tobi36
* update go-fed * update go-fed * manuallyapprovesfollowers * serialize manuallyApprovesFollowers
2021-08-20Database updates (#144)Libravatar tobi9
* start moving some database stuff around * continue moving db stuff around * more fiddling * more updates * and some more * and yet more * i broke SOMETHING but what, it's a mystery * tidy up * vendor ttlcache * use ttlcache * fix up some tests * rename some stuff * little reminder * some more updates
2021-08-16Text/status parsing fixes (#141)Libravatar Tobi Smethurst40
* aaaaaa * vendor minify * update + test markdown parsing
2021-08-12Grand test fixup (#138)Libravatar Tobi Smethurst2665
* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig