about summary refs log tree commit diff stats
path: root/internal/nix/importable.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/nix/importable.go')
-rw-r--r--internal/nix/importable.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/nix/importable.go b/internal/nix/importable.go
new file mode 100644
index 0000000..309ec5f
--- /dev/null
+++ b/internal/nix/importable.go
@@ -0,0 +1,11 @@
+package nix
+
+type Importable interface {
+	BleveType() string
+	GetName() string
+	GetSource() string
+}
+
+func GetKey(i Importable) string {
+	return i.BleveType() + "/" + i.GetSource() + "/" + i.GetName()
+}