gotosocial/internal/db/bundb
kim 43ac0cdb9c
[chore] Global server configuration overhaul (#575)
* move config flag names and usage to config package, rewrite config package to use global Configuration{} struct

Signed-off-by: kim <grufwub@gmail.com>

* improved code comment

Signed-off-by: kim <grufwub@gmail.com>

* linter

Signed-off-by: kim <grufwub@gmail.com>

* fix unmarshaling

Signed-off-by: kim <grufwub@gmail.com>

* remove kim's custom go compiler changes

Signed-off-by: kim <grufwub@gmail.com>

* generate setter and flag-name functions, implement these in codebase

Signed-off-by: kim <grufwub@gmail.com>

* update deps

Signed-off-by: kim <grufwub@gmail.com>

* small change

Signed-off-by: kim <grufwub@gmail.com>

* appease the linter...

Signed-off-by: kim <grufwub@gmail.com>

* move configuration into ConfigState structure, ensure reloading to/from viper settings to keep in sync

Signed-off-by: kim <grufwub@gmail.com>

* lint

Signed-off-by: kim <grufwub@gmail.com>

* update code comments

Signed-off-by: kim <grufwub@gmail.com>

* fix merge issue

Signed-off-by: kim <grufwub@gmail.com>

* fix merge issue

Signed-off-by: kim <grufwub@gmail.com>

* improved version string (removes time + go version)

Signed-off-by: kim <grufwub@gmail.com>

* fix version string build to pass test script + consolidate logic in func

Signed-off-by: kim <grufwub@gmail.com>

* add license text, update config.Defaults comment

Signed-off-by: kim <grufwub@gmail.com>

* add license text to generated config helpers file

Signed-off-by: kim <grufwub@gmail.com>

* defer unlock on config.Set___(), to ensure unlocked on panic

Signed-off-by: kim <grufwub@gmail.com>

* make it more obvious which cmd flags are being attached

Signed-off-by: kim <grufwub@gmail.com>
2022-05-30 14:41:24 +02:00
..
migrations [performance] Add further indexes to mitigate laggy queries (#586) 2022-05-18 15:58:26 +01:00
account.go [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
account_test.go [bugfix] Fix multiple dereferences of boosted status causing media duplication (#589) 2022-05-23 16:40:03 +01:00
admin.go [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
admin_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
basic.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
basic_test.go [chore] Timeline test updates (#578) 2022-05-16 18:48:59 +02:00
bundb.go [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
bundb_test.go [feature] Clean up/uncache remote media (#407) 2022-03-07 11:08:26 +01:00
bundbnew_test.go [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
conn.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
domain.go [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
domain_test.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
emoji.go [feature] implement custom_emojis endpoint (#563) 2022-05-20 10:34:36 +02:00
emoji_test.go [feature] implement custom_emojis endpoint (#563) 2022-05-20 10:34:36 +02:00
errors.go go fmt 2022-02-08 12:19:54 +01:00
instance.go [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
media.go [feature] Unused avatar and header cleanup (#574) 2022-05-15 15:45:04 +01:00
media_test.go [feature] Unused avatar and header cleanup (#574) 2022-05-15 15:45:04 +01:00
mention.go [chore] Update Go version to 1.18 (#444) 2022-04-02 15:40:09 +02:00
mention_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
notification.go [chore] Update Go version to 1.18 (#444) 2022-04-02 15:40:09 +02:00
notification_test.go [performance] Database optimizations (#419) 2022-03-07 11:33:18 +01:00
relationship.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
relationship_test.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
session.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
session_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
status.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
status_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
trace.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
util.go [feature] Clean up/uncache remote media (#407) 2022-03-07 11:08:26 +01:00