mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-17 06:57:40 +08:00
client/rpc: rename package name to match rpc and edit migration story
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# `httpapi`
|
||||
# `coreiface.CoreAPI` over http `rpc`
|
||||
|
||||
> IPFS CoreAPI implementation using HTTP API
|
||||
|
||||
@ -19,13 +19,13 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
ipfsClient "github.com/ipfs/kubo/client/rpc"
|
||||
"github.com/ipfs/kubo/client/rpc"
|
||||
path "github.com/ipfs/boxo/coreiface/path"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// "Connect" to local node
|
||||
node, err := ipfsClient.NewLocalApi()
|
||||
node, err := rpc.NewLocalApi()
|
||||
if err != nil {
|
||||
fmt.Printf(err)
|
||||
return
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package httpapi
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -66,7 +66,8 @@ updated the CoreAPI with new Kubo features but forgot to port thoses to the
|
||||
http-client, making it impossible to use them together with the same coreapi
|
||||
version.
|
||||
|
||||
**TODO(@Jorropo)**: add link to `boxo-migrate` once support for rewriting this import path has been added
|
||||
For smooth transition `v0.7.0` of `go-ipfs-http-client` provides updated stubs
|
||||
for Kubo `v0.21`.
|
||||
|
||||
### 📝 Changelog
|
||||
|
||||
|
@ -4,11 +4,11 @@ Kubo provides official HTTP RPC (`/api/v0`) clients for selected languages:
|
||||
|
||||
- [`js-kubo-rpc-client`](https://github.com/ipfs/js-kubo-rpc-client) - Official JS client for talking to Kubo RPC over HTTP
|
||||
- [`go-ipfs-api`](https://github.com/ipfs/go-ipfs-api) - The go interface to ipfs's HTTP RPC - Follow https://github.com/ipfs/kubo/issues/9124 for coming changes.
|
||||
- [`httpapi`](./client/rpc) (previously `go-ipfs-http-client`)) - IPFS CoreAPI implementation using HTTP RPC
|
||||
- [`httpapi`](./client/rpc) (previously `go-ipfs-http-client`) - [`coreiface.CoreAPI`](https://pkg.go.dev/github.com/ipfs/boxo/coreiface#CoreAPI) implementation using HTTP RPC
|
||||
|
||||
## Recommended clients
|
||||
|
||||
| Language | Package Name | Github Repository |
|
||||
|:--------:|:-------------------:|--------------------------------------------|
|
||||
| JS | kubo-rpc-client | https://github.com/ipfs/js-kubo-rpc-client |
|
||||
| Go | `httpapi` | [`./client/rpc`](./client/rpc) |
|
||||
| Go | `rpc` | [`./client/rpc`](./client/rpc) |
|
||||
|
Reference in New Issue
Block a user