Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The LUCI Authors. All rights reserved. | |
|
iannucci
2017/01/07 20:12:16
also I wish that rietveld (or gerrit) let you some
dnj
2017/01/10 03:25:58
Acknowledged.
| |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | |
| 3 // that can be found in the LICENSE file. | |
| 4 | |
| 5 // Package config contains service implementations for the LUCI configuration | |
| 6 // service defined in github.com/luci/luci-go/common/config. | |
| 7 // | |
| 8 // This defines a service-oriented interface to retrieve configuration service | |
| 9 // properties and data. The interface is designed to be used with | |
|
iannucci
2017/01/07 20:12:16
'service-oriented'? which service? the config serv
dnj
2017/01/10 03:25:58
Done. The entire "server/" package has this theme,
| |
| 10 // service-appropriate caching layers. Config service requests are made with | |
|
iannucci
2017/01/07 20:12:16
'service-appropriate'? same questions.
dnj
2017/01/10 03:25:58
Done.
| |
| 11 // authorities, either as the service itself, on behalf of the user (delegation | |
| 12 // is required), or anonymously. | |
| 13 // | |
| 14 // This package also offers the concept of resolution, where a configuration | |
| 15 // value is transformed into a more versatile application format prior to being | |
| 16 // cached and/or returned. Resolution allows configuration data consumers to | |
| 17 // handle configuration data as native Go types instead of raw configuration | |
| 18 // service data. | |
| 19 // | |
| 20 // Configuration requests pass through the following layers: | |
| 21 // 1) A Backend, which is the configured configuration authority. | |
| 22 // 2) Cache resolution, which optionally transforms the data into a cachable | |
| 23 // format. | |
|
iannucci
2017/01/07 20:12:16
an application-specific cachable format
dnj
2017/01/10 03:25:58
Done.
| |
| 24 // 3) A cache layer, which caches the data. | |
| 25 // 4) Value resolution, which transforms the cached data format from (2) into | |
| 26 // a Go value. | |
| 27 // 5) The Go value is retuned to the user. | |
| 28 // | |
| 29 // Layers (2) and (4) are managed by the Resolver type, which is associated by | |
| 30 // the user to the underlying configuration data. | |
|
iannucci
2017/01/07 20:12:16
s/the user/the application/
since the application
dnj
2017/01/10 03:25:58
Done.
| |
| 31 package config | |
| OLD | NEW |