gotosocial/vendor/codeberg.org/gruf
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
..
go-bytesize update remaining gruf libraries relying on linkname (#3028) 2024-06-21 18:36:58 +00:00
go-byteutil [chore] bump go-byteutil v1.2.0 -> v1.3.0 (#3356) 2024-09-26 19:50:08 +00:00
go-cache/v3 update gruf / {go-cache, go-maps, go-kv} (#3361) 2024-09-27 10:26:50 +00:00
go-debug [performance] processing media and scheduled jobs improvements (#1482) 2023-02-13 18:40:48 +00:00
go-errors/v2 update remaining gruf libraries relying on linkname (#3028) 2024-06-21 18:36:58 +00:00
go-fastcopy update go-fastcopy to v1.1.3 (#3200) 2024-08-14 16:56:56 +00:00
go-fastpath/v2 [feature] add per-uri dereferencer locks (#2291) 2023-10-31 11:12:22 +00:00
go-ffmpreg bump ffmpreg to v0.6.7 (#3947) 2025-03-28 11:45:31 +00:00
go-iotools [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
go-kv update gruf / {go-cache, go-maps, go-kv} (#3361) 2024-09-27 10:26:50 +00:00
go-list [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
go-mangler [chore]: Bump codeberg.org/gruf/go-structr from 0.9.0 to 0.9.6 (#3973) 2025-04-07 11:03:57 +01:00
go-maps update gruf / {go-cache, go-maps, go-kv} (#3361) 2024-09-27 10:26:50 +00:00
go-mempool [performance] update go-structr and go-mutexes with memory usage improvements (#2909) 2024-05-13 08:05:46 +00:00
go-mutexes [chore]: Bump codeberg.org/gruf/go-mutexes from 1.5.1 to 1.5.2 (#3976) 2025-04-07 11:04:45 +01:00
go-runners [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
go-sched [chore] update go-sched pkg (#3357) 2024-09-26 19:23:41 +00:00
go-split [feature] support nested configuration files, and setting ALL configuration variables by CLI and env (#4109) 2025-05-06 15:51:45 +00:00
go-storage [bugfix] s3 media uploaded without content-type (#3353) 2024-09-26 14:43:10 +02:00
go-structr [performance] rewrite timelines to rely on new timeline cache type (#3941) 2025-04-26 09:56:15 +00:00