about summary refs log tree commit diff stats
path: root/internal/nix/importable.go
blob: 37532cd48f55d6fa9281a7ad58eb2838cbe4d80e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package nix

import "encoding/gob"

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

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

func init() {
	gob.Register(Option{})
	gob.Register(Package{})
}