Skip to content

Commit

Permalink
PR FIXUP - Document node-lens enum and mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Jun 5, 2024
1 parent 6916237 commit e53d161
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions node/lens.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e53d161

Please sign in to comment.