mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-26 04:02:12 +00:00
Regenerate internal/config/helpers.gen.go
``` go run ./internal/config/gen/ -out ./internal/config/helpers.gen.go ```
This commit is contained in:
parent
d206cf8306
commit
3d3d82a931
|
@ -2191,22 +2191,6 @@ func (st *ConfigState) SetTracingEndpoint(v string) {
|
||||||
st.reloadToViper()
|
st.reloadToViper()
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetTracingHeaders safely fetches the Configuration value for state's 'TracingHeaders' field
|
|
||||||
func (st *ConfigState) GetTracingHeaders() (v map[string]string) {
|
|
||||||
st.mutex.RLock()
|
|
||||||
v = st.config.TracingHeaders
|
|
||||||
st.mutex.RUnlock()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetTracingEndpoint safely sets the Configuration value for state's 'TracingHeaders' field
|
|
||||||
func (st *ConfigState) SetTracingHeaders(v map[string]string) {
|
|
||||||
st.mutex.Lock()
|
|
||||||
defer st.mutex.Unlock()
|
|
||||||
st.config.TracingHeaders = v
|
|
||||||
st.reloadToViper()
|
|
||||||
}
|
|
||||||
|
|
||||||
// TracingEndpointFlag returns the flag name for the 'TracingEndpoint' field
|
// TracingEndpointFlag returns the flag name for the 'TracingEndpoint' field
|
||||||
func TracingEndpointFlag() string { return "tracing-endpoint" }
|
func TracingEndpointFlag() string { return "tracing-endpoint" }
|
||||||
|
|
||||||
|
@ -2216,6 +2200,31 @@ func GetTracingEndpoint() string { return global.GetTracingEndpoint() }
|
||||||
// SetTracingEndpoint safely sets the value for global configuration 'TracingEndpoint' field
|
// SetTracingEndpoint safely sets the value for global configuration 'TracingEndpoint' field
|
||||||
func SetTracingEndpoint(v string) { global.SetTracingEndpoint(v) }
|
func SetTracingEndpoint(v string) { global.SetTracingEndpoint(v) }
|
||||||
|
|
||||||
|
// GetTracingHeaders safely fetches the Configuration value for state's 'TracingHeaders' field
|
||||||
|
func (st *ConfigState) GetTracingHeaders() (v map[string]string) {
|
||||||
|
st.mutex.RLock()
|
||||||
|
v = st.config.TracingHeaders
|
||||||
|
st.mutex.RUnlock()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetTracingHeaders safely sets the Configuration value for state's 'TracingHeaders' field
|
||||||
|
func (st *ConfigState) SetTracingHeaders(v map[string]string) {
|
||||||
|
st.mutex.Lock()
|
||||||
|
defer st.mutex.Unlock()
|
||||||
|
st.config.TracingHeaders = v
|
||||||
|
st.reloadToViper()
|
||||||
|
}
|
||||||
|
|
||||||
|
// TracingHeadersFlag returns the flag name for the 'TracingHeaders' field
|
||||||
|
func TracingHeadersFlag() string { return "tracing-headers" }
|
||||||
|
|
||||||
|
// GetTracingHeaders safely fetches the value for global configuration 'TracingHeaders' field
|
||||||
|
func GetTracingHeaders() map[string]string { return global.GetTracingHeaders() }
|
||||||
|
|
||||||
|
// SetTracingHeaders safely sets the value for global configuration 'TracingHeaders' field
|
||||||
|
func SetTracingHeaders(v map[string]string) { global.SetTracingHeaders(v) }
|
||||||
|
|
||||||
// GetTracingInsecureTransport safely fetches the Configuration value for state's 'TracingInsecureTransport' field
|
// GetTracingInsecureTransport safely fetches the Configuration value for state's 'TracingInsecureTransport' field
|
||||||
func (st *ConfigState) GetTracingInsecureTransport() (v bool) {
|
func (st *ConfigState) GetTracingInsecureTransport() (v bool) {
|
||||||
st.mutex.RLock()
|
st.mutex.RLock()
|
||||||
|
@ -3158,19 +3167,13 @@ func (st *ConfigState) SetCacheConversationLastStatusIDsMemRatio(v float64) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// CacheConversationLastStatusIDsMemRatioFlag returns the flag name for the 'Cache.ConversationLastStatusIDsMemRatio' field
|
// CacheConversationLastStatusIDsMemRatioFlag returns the flag name for the 'Cache.ConversationLastStatusIDsMemRatio' field
|
||||||
func CacheConversationLastStatusIDsMemRatioFlag() string {
|
func CacheConversationLastStatusIDsMemRatioFlag() string { return "cache-conversation-last-status-ids-mem-ratio" }
|
||||||
return "cache-conversation-last-status-ids-mem-ratio"
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetCacheConversationLastStatusIDsMemRatio safely fetches the value for global configuration 'Cache.ConversationLastStatusIDsMemRatio' field
|
// GetCacheConversationLastStatusIDsMemRatio safely fetches the value for global configuration 'Cache.ConversationLastStatusIDsMemRatio' field
|
||||||
func GetCacheConversationLastStatusIDsMemRatio() float64 {
|
func GetCacheConversationLastStatusIDsMemRatio() float64 { return global.GetCacheConversationLastStatusIDsMemRatio() }
|
||||||
return global.GetCacheConversationLastStatusIDsMemRatio()
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetCacheConversationLastStatusIDsMemRatio safely sets the value for global configuration 'Cache.ConversationLastStatusIDsMemRatio' field
|
// SetCacheConversationLastStatusIDsMemRatio safely sets the value for global configuration 'Cache.ConversationLastStatusIDsMemRatio' field
|
||||||
func SetCacheConversationLastStatusIDsMemRatio(v float64) {
|
func SetCacheConversationLastStatusIDsMemRatio(v float64) { global.SetCacheConversationLastStatusIDsMemRatio(v) }
|
||||||
global.SetCacheConversationLastStatusIDsMemRatio(v)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetCacheDomainPermissionDraftMemRation safely fetches the Configuration value for state's 'Cache.DomainPermissionDraftMemRation' field
|
// GetCacheDomainPermissionDraftMemRation safely fetches the Configuration value for state's 'Cache.DomainPermissionDraftMemRation' field
|
||||||
func (st *ConfigState) GetCacheDomainPermissionDraftMemRation() (v float64) {
|
func (st *ConfigState) GetCacheDomainPermissionDraftMemRation() (v float64) {
|
||||||
|
@ -3189,19 +3192,13 @@ func (st *ConfigState) SetCacheDomainPermissionDraftMemRation(v float64) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// CacheDomainPermissionDraftMemRationFlag returns the flag name for the 'Cache.DomainPermissionDraftMemRation' field
|
// CacheDomainPermissionDraftMemRationFlag returns the flag name for the 'Cache.DomainPermissionDraftMemRation' field
|
||||||
func CacheDomainPermissionDraftMemRationFlag() string {
|
func CacheDomainPermissionDraftMemRationFlag() string { return "cache-domain-permission-draft-mem-ratio" }
|
||||||
return "cache-domain-permission-draft-mem-ratio"
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetCacheDomainPermissionDraftMemRation safely fetches the value for global configuration 'Cache.DomainPermissionDraftMemRation' field
|
// GetCacheDomainPermissionDraftMemRation safely fetches the value for global configuration 'Cache.DomainPermissionDraftMemRation' field
|
||||||
func GetCacheDomainPermissionDraftMemRation() float64 {
|
func GetCacheDomainPermissionDraftMemRation() float64 { return global.GetCacheDomainPermissionDraftMemRation() }
|
||||||
return global.GetCacheDomainPermissionDraftMemRation()
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetCacheDomainPermissionDraftMemRation safely sets the value for global configuration 'Cache.DomainPermissionDraftMemRation' field
|
// SetCacheDomainPermissionDraftMemRation safely sets the value for global configuration 'Cache.DomainPermissionDraftMemRation' field
|
||||||
func SetCacheDomainPermissionDraftMemRation(v float64) {
|
func SetCacheDomainPermissionDraftMemRation(v float64) { global.SetCacheDomainPermissionDraftMemRation(v) }
|
||||||
global.SetCacheDomainPermissionDraftMemRation(v)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetCacheEmojiMemRatio safely fetches the Configuration value for state's 'Cache.EmojiMemRatio' field
|
// GetCacheEmojiMemRatio safely fetches the Configuration value for state's 'Cache.EmojiMemRatio' field
|
||||||
func (st *ConfigState) GetCacheEmojiMemRatio() (v float64) {
|
func (st *ConfigState) GetCacheEmojiMemRatio() (v float64) {
|
||||||
|
@ -4427,3 +4424,4 @@ func GetRequestIDHeader() string { return global.GetRequestIDHeader() }
|
||||||
|
|
||||||
// SetRequestIDHeader safely sets the value for global configuration 'RequestIDHeader' field
|
// SetRequestIDHeader safely sets the value for global configuration 'RequestIDHeader' field
|
||||||
func SetRequestIDHeader(v string) { global.SetRequestIDHeader(v) }
|
func SetRequestIDHeader(v string) { global.SetRequestIDHeader(v) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue