about summary refs log tree commit diff stats
path: root/internal/nix/importable.go
blob: 309ec5f5b22fa01d5756cce541821ac8f2dec7d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
package nix

type Importable interface {
	BleveType() string
	GetName() string
	GetSource() string
}

func GetKey(i Importable) string {
	return i.BleveType() + "/" + i.GetSource() + "/" + i.GetName()
}