summaryrefslogtreecommitdiff
path: root/internal/config/helpers.gen.go
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2024-07-29 11:26:31 -0700
committerLibravatar GitHub <noreply@github.com>2024-07-29 19:26:31 +0100
commita237e2b295fee71bdf7266520b0b6e0fb79b565c (patch)
treec522adc47019584b60de9420595505820635bb11 /internal/config/helpers.gen.go
parent[bugfix] take into account rotation when generating thumbnail (#3147) (diff)
downloadgotosocial-a237e2b295fee71bdf7266520b0b6e0fb79b565c.tar.xz
[feature] Implement following hashtags (#3141)
* Implement followed tags API * Insert statuses with followed tags into home timelines * Test following and unfollowing tags * Correct Swagger path params * Trim conversation caches * Migration for followed_tags table * Followed tag caches and DB implementation * Lint and tests * Add missing tag info endpoint, reorganize tag API * Unwrap boosts when timelining based on tags * Apply visibility filters to tag followers * Address review comments
Diffstat (limited to 'internal/config/helpers.gen.go')
-rw-r--r--internal/config/helpers.gen.go62
1 files changed, 62 insertions, 0 deletions
diff --git a/internal/config/helpers.gen.go b/internal/config/helpers.gen.go
index 932cb802d..587fba364 100644
--- a/internal/config/helpers.gen.go
+++ b/internal/config/helpers.gen.go
@@ -2775,6 +2775,37 @@ func GetCacheAccountMemRatio() float64 { return global.GetCacheAccountMemRatio()
// SetCacheAccountMemRatio safely sets the value for global configuration 'Cache.AccountMemRatio' field
func SetCacheAccountMemRatio(v float64) { global.SetCacheAccountMemRatio(v) }
+// GetCacheAccountIDsFollowingTagMemRatio safely fetches the Configuration value for state's 'Cache.AccountIDsFollowingTagMemRatio' field
+func (st *ConfigState) GetCacheAccountIDsFollowingTagMemRatio() (v float64) {
+ st.mutex.RLock()
+ v = st.config.Cache.AccountIDsFollowingTagMemRatio
+ st.mutex.RUnlock()
+ return
+}
+
+// SetCacheAccountIDsFollowingTagMemRatio safely sets the Configuration value for state's 'Cache.AccountIDsFollowingTagMemRatio' field
+func (st *ConfigState) SetCacheAccountIDsFollowingTagMemRatio(v float64) {
+ st.mutex.Lock()
+ defer st.mutex.Unlock()
+ st.config.Cache.AccountIDsFollowingTagMemRatio = v
+ st.reloadToViper()
+}
+
+// CacheAccountIDsFollowingTagMemRatioFlag returns the flag name for the 'Cache.AccountIDsFollowingTagMemRatio' field
+func CacheAccountIDsFollowingTagMemRatioFlag() string {
+ return "cache-account-ids-following-tag-mem-ratio"
+}
+
+// GetCacheAccountIDsFollowingTagMemRatio safely fetches the value for global configuration 'Cache.AccountIDsFollowingTagMemRatio' field
+func GetCacheAccountIDsFollowingTagMemRatio() float64 {
+ return global.GetCacheAccountIDsFollowingTagMemRatio()
+}
+
+// SetCacheAccountIDsFollowingTagMemRatio safely sets the value for global configuration 'Cache.AccountIDsFollowingTagMemRatio' field
+func SetCacheAccountIDsFollowingTagMemRatio(v float64) {
+ global.SetCacheAccountIDsFollowingTagMemRatio(v)
+}
+
// GetCacheAccountNoteMemRatio safely fetches the Configuration value for state's 'Cache.AccountNoteMemRatio' field
func (st *ConfigState) GetCacheAccountNoteMemRatio() (v float64) {
st.mutex.RLock()
@@ -3758,6 +3789,37 @@ func GetCacheTagMemRatio() float64 { return global.GetCacheTagMemRatio() }
// SetCacheTagMemRatio safely sets the value for global configuration 'Cache.TagMemRatio' field
func SetCacheTagMemRatio(v float64) { global.SetCacheTagMemRatio(v) }
+// GetCacheTagIDsFollowedByAccountMemRatio safely fetches the Configuration value for state's 'Cache.TagIDsFollowedByAccountMemRatio' field
+func (st *ConfigState) GetCacheTagIDsFollowedByAccountMemRatio() (v float64) {
+ st.mutex.RLock()
+ v = st.config.Cache.TagIDsFollowedByAccountMemRatio
+ st.mutex.RUnlock()
+ return
+}
+
+// SetCacheTagIDsFollowedByAccountMemRatio safely sets the Configuration value for state's 'Cache.TagIDsFollowedByAccountMemRatio' field
+func (st *ConfigState) SetCacheTagIDsFollowedByAccountMemRatio(v float64) {
+ st.mutex.Lock()
+ defer st.mutex.Unlock()
+ st.config.Cache.TagIDsFollowedByAccountMemRatio = v
+ st.reloadToViper()
+}
+
+// CacheTagIDsFollowedByAccountMemRatioFlag returns the flag name for the 'Cache.TagIDsFollowedByAccountMemRatio' field
+func CacheTagIDsFollowedByAccountMemRatioFlag() string {
+ return "cache-tag-ids-followed-by-account-mem-ratio"
+}
+
+// GetCacheTagIDsFollowedByAccountMemRatio safely fetches the value for global configuration 'Cache.TagIDsFollowedByAccountMemRatio' field
+func GetCacheTagIDsFollowedByAccountMemRatio() float64 {
+ return global.GetCacheTagIDsFollowedByAccountMemRatio()
+}
+
+// SetCacheTagIDsFollowedByAccountMemRatio safely sets the value for global configuration 'Cache.TagIDsFollowedByAccountMemRatio' field
+func SetCacheTagIDsFollowedByAccountMemRatio(v float64) {
+ global.SetCacheTagIDsFollowedByAccountMemRatio(v)
+}
+
// GetCacheThreadMuteMemRatio safely fetches the Configuration value for state's 'Cache.ThreadMuteMemRatio' field
func (st *ConfigState) GetCacheThreadMuteMemRatio() (v float64) {
st.mutex.RLock()