mirror of
https://github.com/lukaszraczylo/graphql-monitoring-proxy.git
synced 2026-10-21 06:37:21 +00:00
Adjust field alignment.
This commit is contained in:
Vendored
+3
-3
@@ -14,11 +14,11 @@ type CacheEntry struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Cache struct {
|
type Cache struct {
|
||||||
entries sync.Map
|
|
||||||
globalTTL time.Duration
|
|
||||||
compressPool sync.Pool
|
compressPool sync.Pool
|
||||||
decompressPool sync.Pool
|
decompressPool sync.Pool
|
||||||
sync.RWMutex // Reintroduced to provide lock methods
|
entries sync.Map
|
||||||
|
globalTTL time.Duration
|
||||||
|
sync.RWMutex
|
||||||
}
|
}
|
||||||
|
|
||||||
func New(globalTTL time.Duration) *Cache {
|
func New(globalTTL time.Duration) *Cache {
|
||||||
|
|||||||
+14
-14
@@ -9,15 +9,6 @@ import (
|
|||||||
|
|
||||||
// config is a struct that holds the configuration of the application.
|
// config is a struct that holds the configuration of the application.
|
||||||
type config struct {
|
type config struct {
|
||||||
Cache struct {
|
|
||||||
Client CacheClient
|
|
||||||
CacheTTL int
|
|
||||||
CacheEnable bool
|
|
||||||
CacheRedisEnable bool
|
|
||||||
CacheRedisURL string
|
|
||||||
CacheRedisPassword string
|
|
||||||
CacheRedisDB int
|
|
||||||
}
|
|
||||||
Logger *libpack_logging.LogConfig
|
Logger *libpack_logging.LogConfig
|
||||||
Monitoring *libpack_monitoring.MetricsSetup
|
Monitoring *libpack_monitoring.MetricsSetup
|
||||||
Api struct{ BannedUsersFile string }
|
Api struct{ BannedUsersFile string }
|
||||||
@@ -35,6 +26,20 @@ type config struct {
|
|||||||
IntrospectionAllowed []string
|
IntrospectionAllowed []string
|
||||||
BlockIntrospection bool
|
BlockIntrospection bool
|
||||||
}
|
}
|
||||||
|
HasuraEventCleaner struct {
|
||||||
|
EventMetadataDb string
|
||||||
|
ClearOlderThan int
|
||||||
|
Enable bool
|
||||||
|
}
|
||||||
|
Cache struct {
|
||||||
|
Client CacheClient
|
||||||
|
CacheRedisURL string
|
||||||
|
CacheRedisPassword string
|
||||||
|
CacheTTL int
|
||||||
|
CacheRedisDB int
|
||||||
|
CacheEnable bool
|
||||||
|
CacheRedisEnable bool
|
||||||
|
}
|
||||||
Server struct {
|
Server struct {
|
||||||
HostGraphQL string
|
HostGraphQL string
|
||||||
HostGraphQLReadOnly string
|
HostGraphQLReadOnly string
|
||||||
@@ -49,9 +54,4 @@ type config struct {
|
|||||||
EnableApi bool
|
EnableApi bool
|
||||||
PurgeOnCrawl bool
|
PurgeOnCrawl bool
|
||||||
}
|
}
|
||||||
HasuraEventCleaner struct {
|
|
||||||
Enable bool
|
|
||||||
ClearOlderThan int // days to keep
|
|
||||||
EventMetadataDb string
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user