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

Unified Diff: common/logdog/types/streamsecret.go

Issue 1967273002: LogDog: Implement RegisterPrefix RPC. (Closed) Base URL: https://github.com/luci/luci-go@logdog-butler-register-coordinator-endpoint
Patch Set: Updated from comments. Created 4 years, 7 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
Index: common/logdog/types/streamsecret.go
diff --git a/common/logdog/types/streamsecret.go b/common/logdog/types/streamsecret.go
index 74e0c28c8ccfb0c7e6facaf4916c6bcd7a7286fd..4b378efe201f1cb0d3d7a8cf5d6360fcadc33898 100644
--- a/common/logdog/types/streamsecret.go
+++ b/common/logdog/types/streamsecret.go
@@ -18,8 +18,13 @@ const (
PrefixSecretLength = 36
)
-// PrefixSecret is the stream secret value. This is a Base64-encoded secret
-// value.
+// PrefixSecret is the prefix secret value. It is used to assert ownership of
+// a prefix space.
+//
+// The Prefix secreet is generated by the Coordinator at prefix registration,
nodir 2016/05/17 16:19:47 s/screet/secret
dnj (Google) 2016/05/17 16:32:54 Done.
+// and is included by the Butler to prove that it is the entity that registered
+// the stream. The secret is asserted by microservices and the Coordiantor
nodir 2016/05/17 16:19:47 typo in Coordinator
dnj (Google) 2016/05/17 16:32:54 Done.
+// during Butler-initiated stream operations.
type PrefixSecret []byte
// NewPrefixSecret generates a new, default-length secret parameter.

Powered by Google App Engine
This is Rietveld 408576698