Adds a comment about the embedded struct.

pull/1764/head
James Phillips 9 years ago
parent aa8cd2619d
commit 1cad6b9e0f

@ -20,7 +20,13 @@ func isUUID(str string) bool {
// queryWrapper is an internal structure that is used to store a query alongside // queryWrapper is an internal structure that is used to store a query alongside
// its compiled template, which can be nil. // its compiled template, which can be nil.
type queryWrapper struct { type queryWrapper struct {
// We embed the PreparedQuery structure so that the UUID field indexer
// can see the ID directly.
*structs.PreparedQuery *structs.PreparedQuery
// ct is the compiled template, or nil if the query isn't a template. The
// state store manages this and keeps it up to date every time the query
// changes.
ct *prepared_query.CompiledTemplate ct *prepared_query.CompiledTemplate
} }

Loading…
Cancel
Save