From e53d161774bd86962da8f8b9c30774e12c178a72 Mon Sep 17 00:00:00 2001 From: Andrew Sisley Date: Wed, 5 Jun 2024 11:17:05 -0400 Subject: [PATCH] PR FIXUP - Document node-lens enum and mapping --- node/lens.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/node/lens.go b/node/lens.go index 7fb2d89fbe..aa8bfcc8d0 100644 --- a/node/lens.go +++ b/node/lens.go @@ -22,9 +22,16 @@ import ( type LensRuntimeType string const ( + // The Go-enum default LensRuntimeType. + // + // The actual runtime type that this resolves to depends on the build target. DefaultLens LensRuntimeType = "" ) +// runtimeConstructors is a map of [LensRuntimeType]s to lens runtimes. +// +// Is is populated by the `init` functions in the runtime-specific files - this +// allows it's population to be managed by build flags. var runtimeConstructors = map[LensRuntimeType]func() module.Runtime{} // LensOptions contains Lens configuration values.