@@ -57,152 +57,152 @@ var (
5757 rootBlocks = []rootBlock {
5858 {
5959 name : "alertmanager_config" ,
60- structType : reflect .TypeOf ( alertmanager.MultitenantAlertmanagerConfig {} ),
60+ structType : reflect .TypeFor [ alertmanager.MultitenantAlertmanagerConfig ]( ),
6161 desc : "The alertmanager_config configures the Cortex alertmanager." ,
6262 },
6363 {
6464 name : "alertmanager_storage_config" ,
65- structType : reflect .TypeOf ( alertstore.Config {} ),
65+ structType : reflect .TypeFor [ alertstore.Config ]( ),
6666 desc : "The alertmanager_storage_config configures the Cortex alertmanager storage backend." ,
6767 },
6868 {
6969 name : "blocks_storage_config" ,
70- structType : reflect .TypeOf ( tsdb.BlocksStorageConfig {} ),
70+ structType : reflect .TypeFor [ tsdb.BlocksStorageConfig ]( ),
7171 desc : "The blocks_storage_config configures the blocks storage." ,
7272 },
7373 {
7474 name : "compactor_config" ,
75- structType : reflect .TypeOf ( compactor.Config {} ),
75+ structType : reflect .TypeFor [ compactor.Config ]( ),
7676 desc : "The compactor_config configures the compactor for the blocks storage." ,
7777 },
7878 {
7979 name : "configs_config" ,
80- structType : reflect .TypeOf ( configs.Config {} ),
80+ structType : reflect .TypeFor [ configs.Config ]( ),
8181 desc : "The configs_config configures the Cortex Configs DB and API." ,
8282 },
8383 {
8484 name : "configstore_config" ,
85- structType : reflect .TypeOf ( config_client.Config {} ),
85+ structType : reflect .TypeFor [ config_client.Config ]( ),
8686 desc : "The configstore_config configures the config database storing rules and alerts, and is used by the Cortex alertmanager." ,
8787 },
8888 {
8989 name : "consul_config" ,
90- structType : reflect .TypeOf ( consul.Config {} ),
90+ structType : reflect .TypeFor [ consul.Config ]( ),
9191 desc : "The consul_config configures the consul client." ,
9292 },
9393 {
9494 name : "distributor_config" ,
95- structType : reflect .TypeOf ( distributor.Config {} ),
95+ structType : reflect .TypeFor [ distributor.Config ]( ),
9696 desc : "The distributor_config configures the Cortex distributor." ,
9797 },
9898 {
9999 name : "etcd_config" ,
100- structType : reflect .TypeOf ( etcd.Config {} ),
100+ structType : reflect .TypeFor [ etcd.Config ]( ),
101101 desc : "The etcd_config configures the etcd client." ,
102102 },
103103 {
104104 name : "fifo_cache_config" ,
105- structType : reflect .TypeOf ( cache.FifoCacheConfig {} ),
105+ structType : reflect .TypeFor [ cache.FifoCacheConfig ]( ),
106106 desc : "The fifo_cache_config configures the local in-memory cache." ,
107107 },
108108 {
109109 name : "flusher_config" ,
110- structType : reflect .TypeOf ( flusher.Config {} ),
110+ structType : reflect .TypeFor [ flusher.Config ]( ),
111111 desc : "The flusher_config configures the WAL flusher target, used to manually run one-time flushes when scaling down ingesters." ,
112112 },
113113 {
114114 name : "frontend_worker_config" ,
115- structType : reflect .TypeOf ( querier_worker.Config {} ),
115+ structType : reflect .TypeFor [ querier_worker.Config ]( ),
116116 desc : "The frontend_worker_config configures the worker - running within the Cortex querier - picking up and executing queries enqueued by the query-frontend or query-scheduler." ,
117117 },
118118 {
119119 name : "ingester_config" ,
120- structType : reflect .TypeOf ( ingester.Config {} ),
120+ structType : reflect .TypeFor [ ingester.Config ]( ),
121121 desc : "The ingester_config configures the Cortex ingester." ,
122122 },
123123 {
124124 name : "ingester_client_config" ,
125- structType : reflect .TypeOf ( client.Config {} ),
125+ structType : reflect .TypeFor [ client.Config ]( ),
126126 desc : "The ingester_client_config configures how the Cortex distributors connect to the ingesters." ,
127127 },
128128 {
129129 name : "limits_config" ,
130- structType : reflect .TypeOf ( validation.Limits {} ),
130+ structType : reflect .TypeFor [ validation.Limits ]( ),
131131 desc : "The limits_config configures default and per-tenant limits imposed by Cortex services (ie. distributor, ingester, ...)." ,
132132 },
133133 {
134134 name : "memberlist_config" ,
135- structType : reflect .TypeOf ( memberlist.KVConfig {} ),
135+ structType : reflect .TypeFor [ memberlist.KVConfig ]( ),
136136 desc : "The memberlist_config configures the Gossip memberlist." ,
137137 },
138138 {
139139 name : "memcached_config" ,
140- structType : reflect .TypeOf ( cache.MemcachedConfig {} ),
140+ structType : reflect .TypeFor [ cache.MemcachedConfig ]( ),
141141 desc : "The memcached_config block configures how data is stored in Memcached (ie. expiration)." ,
142142 },
143143 {
144144 name : "memcached_client_config" ,
145- structType : reflect .TypeOf ( cache.MemcachedClientConfig {} ),
145+ structType : reflect .TypeFor [ cache.MemcachedClientConfig ]( ),
146146 desc : "The memcached_client_config configures the client used to connect to Memcached." ,
147147 },
148148 {
149149 name : "querier_config" ,
150- structType : reflect .TypeOf ( querier.Config {} ),
150+ structType : reflect .TypeFor [ querier.Config ]( ),
151151 desc : "The querier_config configures the Cortex querier." ,
152152 },
153153 {
154154 name : "query_frontend_config" ,
155- structType : reflect .TypeOf ( frontend.CombinedFrontendConfig {} ),
155+ structType : reflect .TypeFor [ frontend.CombinedFrontendConfig ]( ),
156156 desc : "The query_frontend_config configures the Cortex query-frontend." ,
157157 },
158158 {
159159 name : "query_range_config" ,
160- structType : reflect .TypeOf ( queryrange.Config {} ),
160+ structType : reflect .TypeFor [ queryrange.Config ]( ),
161161 desc : "The query_range_config configures the query splitting and caching in the Cortex query-frontend." ,
162162 },
163163 {
164164 name : "redis_config" ,
165- structType : reflect .TypeOf ( cache.RedisConfig {} ),
165+ structType : reflect .TypeFor [ cache.RedisConfig ]( ),
166166 desc : "The redis_config configures the Redis backend cache." ,
167167 },
168168 {
169169 name : "ruler_config" ,
170- structType : reflect .TypeOf ( ruler.Config {} ),
170+ structType : reflect .TypeFor [ ruler.Config ]( ),
171171 desc : "The ruler_config configures the Cortex ruler." ,
172172 },
173173 {
174174 name : "ruler_storage_config" ,
175- structType : reflect .TypeOf ( rulestore.Config {} ),
175+ structType : reflect .TypeFor [ rulestore.Config ]( ),
176176 desc : "The ruler_storage_config configures the Cortex ruler storage backend." ,
177177 },
178178 {
179179 name : "runtime_configuration_storage_config" ,
180- structType : reflect .TypeOf ( runtimeconfig.Config {} ),
180+ structType : reflect .TypeFor [ runtimeconfig.Config ]( ),
181181 desc : "The runtime_configuration_storage_config configures the storage backend for the runtime configuration file." ,
182182 },
183183 {
184184 name : "s3_sse_config" ,
185- structType : reflect .TypeOf ( s3.SSEConfig {} ),
185+ structType : reflect .TypeFor [ s3.SSEConfig ]( ),
186186 desc : "The s3_sse_config configures the S3 server-side encryption." ,
187187 },
188188 {
189189 name : "server_config" ,
190- structType : reflect .TypeOf ( server.Config {} ),
190+ structType : reflect .TypeFor [ server.Config ]( ),
191191 desc : "The server_config configures the HTTP and gRPC server of the launched service(s)." ,
192192 },
193193 {
194194 name : "storage_config" ,
195- structType : reflect .TypeOf ( storage.Config {} ),
195+ structType : reflect .TypeFor [ storage.Config ]( ),
196196 desc : "The storage_config configures the storage type Cortex uses." ,
197197 },
198198 {
199199 name : "store_gateway_config" ,
200- structType : reflect .TypeOf ( storegateway.Config {} ),
200+ structType : reflect .TypeFor [ storegateway.Config ]( ),
201201 desc : "The store_gateway_config configures the store-gateway service used by the blocks storage." ,
202202 },
203203 {
204204 name : "tracing_config" ,
205- structType : reflect .TypeOf ( tracing.Config {} ),
205+ structType : reflect .TypeFor [ tracing.Config ]( ),
206206 desc : "The tracing_config configures backends cortex uses." ,
207207 },
208208 }
0 commit comments