gotosocial/testrig
kim 6acf56cde9 [feature] support nested configuration files, and setting ALL configuration variables by CLI and env (#4109)
This updates our configuration code generator to now also include map marshal and unmarshalers. So we now have much more control over how things get read from pflags, and stored / read from viper configuration. This allows us to set ALL configuration variables by CLI and environment now, AND support nested configuration files. e.g.

```yaml
advanced:
    scraper-deterrence = true

http-client:
    allow-ips = ["127.0.0.1"]
```

is the same as

```yaml
advanced-scraper-deterrence = true

http-client-allow-ips = ["127.0.0.1"]
```

This also starts cleaning up of our jumbled Configuration{} type by moving the advanced configuration options into their own nested structs, also as a way to show what it's capable of. It's worth noting however that nesting only works if the Go types are nested too (as this is how we hint to our code generator to generate the necessary flattening code :p).

closes #3195

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4109
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
2025-05-06 15:51:45 +00:00
..
media [feature] Allow user to choose "gallery" style layout for web view of profile (#3917) 2025-03-26 15:59:39 +00:00
config.go [feature] support nested configuration files, and setting ALL configuration variables by CLI and env (#4109) 2025-05-06 15:51:45 +00:00
db.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
email.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
federatingdb.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
federator.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
gin.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
log.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
mediahandler.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
oauthserver.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
processor.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
router.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
storage.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
testmodels.go [bugfix] Prevent multiple mentions being created for one mention (#4127) 2025-05-05 09:22:03 +00:00
teststructs.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
transportcontroller.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
util.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
webpush.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00