1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-12-15 22:22:28 +08:00

feat(gateway): IPNS record response format (IPIP-351) (#9399)

* feat(gateway): IPNS record response format
* docs(rpc): mark as experimental: routing provide, get, put

Co-authored-by: Marcin Rataj <lidel@lidel.org>
This commit is contained in:
Henrique Dias
2023-01-27 04:46:50 +01:00
committed by GitHub
parent 94e7f79805
commit a3c70a11e6
13 changed files with 219 additions and 117 deletions

View File

@@ -144,6 +144,11 @@ func (api *CoreAPI) PubSub() coreiface.PubSubAPI {
return (*PubSubAPI)(api)
}
// Routing returns the RoutingAPI interface implementation backed by the kubo node
func (api *CoreAPI) Routing() coreiface.RoutingAPI {
return (*RoutingAPI)(api)
}
// WithOptions returns api with global options applied
func (api *CoreAPI) WithOptions(opts ...options.ApiOption) (coreiface.CoreAPI, error) {
settings := api.parentOpts // make sure to copy