Skip to content

Unify pkgs and styx #12

@joeltg

Description

@joeltg

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
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions