-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Milestone
Description
Joel's Current Grand Vision is to unify styx and pkgs so that pkgs has a plugin architecture that can integrate any index (i.e. database index) that satisfies some interface.
In my mind right now this interface is just
type ResourceType uint8
const (
PackageType ResourceType = iota
MessageType
FileType
)
type Index interface {
Set(path []string, c cid.Cid, t ResourceType)
Delete(path []string)
}... which styx can be refactored to implement.
For now each index would be responsible for providing its own usage endpoint (i.e. styx would still attach an API handler to some other port) but that is also something that should be unified under pkgs in the future.
Metadata
Metadata
Assignees
Labels
No labels