mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 20:07:45 +08:00
The pkg.Interface style is modeled after heap.Interface. Generally, I find it helpful for interfaces that have many implementations. It provides clear distinction between the generic interface and the |n| implementations that implement it (which may be interface types themselves). For clients who cannot keep the repo name, one can imagine that the most likely rename is `ipfsrepo`. In that case, `ipfsrepo.Interface` remains meaningful. This is low-pri so it doesn't matter than much. But for the record, the repo.Interface feels appropriate in this use-case. |
||
|---|---|---|
| .. | ||
| commands | ||
| daemon | ||
| io | ||
| .gitignore | ||
| bootstrap_test.go | ||
| bootstrap.go | ||
| core_test.go | ||
| core.go | ||
| datastore.go | ||
| mock.go | ||