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.
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| internal | 正在载入提交数据... | |
| add.go | 正在载入提交数据... | |
| block.go | 正在载入提交数据... | |
| bootstrap.go | 正在载入提交数据... | |
| cat.go | 正在载入提交数据... | |
| commands.go | 正在载入提交数据... | |
| config.go | 正在载入提交数据... | |
| diag.go | 正在载入提交数据... | |
| diag_test.go | 正在载入提交数据... | |
| id.go | 正在载入提交数据... | |
| log.go | 正在载入提交数据... | |
| ls.go | 正在载入提交数据... | |
| mount_darwin.go | 正在载入提交数据... | |
| mount_unix.go | 正在载入提交数据... | |
| mount_windows.go | 正在载入提交数据... | |
| name.go | 正在载入提交数据... | |
| object.go | 正在载入提交数据... | |
| pin.go | 正在载入提交数据... | |
| ping.go | 正在载入提交数据... | |
| publish.go | 正在载入提交数据... | |
| refs.go | 正在载入提交数据... | |
| resolve.go | 正在载入提交数据... | |
| root.go | 正在载入提交数据... | |
| swarm.go | 正在载入提交数据... | |
| update.go | 正在载入提交数据... | |
| version.go | 正在载入提交数据... |