Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: luci_config/appengine/format/default.go

Issue 2575383002: Add server/cache support to gaeconfig. (Closed)
Patch Set: Un-collapse. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « luci_config/appengine/format/context.go ('k') | luci_config/appengine/gaeconfig/default.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: luci_config/appengine/format/default.go
diff --git a/luci_config/appengine/format/default.go b/luci_config/appengine/format/default.go
new file mode 100644
index 0000000000000000000000000000000000000000..a0b417185c56588cf6cd0a583ba67979f2cd42d5
--- /dev/null
+++ b/luci_config/appengine/format/default.go
@@ -0,0 +1,19 @@
+// Copyright 2016 The LUCI Authors. All rights reserved.
+// Use of this source code is governed under the Apache License, Version 2.0
+// that can be found in the LICENSE file.
+
+// Package format implements a default FormatterRegistry configuration and
+// FormatterRegistry Context embedding.
+package format
+
+import (
+ "github.com/luci/luci-go/luci_config/server/cfgclient"
+ "github.com/luci/luci-go/luci_config/server/cfgclient/textproto"
+)
+
+// Default returns a new default FormatterRegistry configuration.
+func Default() *cfgclient.FormatterRegistry {
+ var fr cfgclient.FormatterRegistry
+ textproto.RegisterFormatter(&fr)
+ return &fr
+}
« no previous file with comments | « luci_config/appengine/format/context.go ('k') | luci_config/appengine/gaeconfig/default.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698