Discover Packages
github.com/filecoin-project/lassie
pkg
heyfil
package
Version:
v0.21.0
Opens a new window with list of versions in this module.
Published: Oct 12, 2023
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const DefaultHeyfilEndpoint = "https://heyfil.prod.cid.contact/"
type Heyfil struct {
Endpoint string
TranslatePeerId bool
TranslateFaddr bool
}
Translate will translate an input string to a full multiaddr if the string
appears to be a Filecoin SP actor address or a peer id using the Heyfil
service. If the input string is not a Filecoin SP actor address or a peer id,
it will be returned as-is.
TranslateAll performs a Translate on all strings in the input slice. If none
of the strings can be translated, the input slice is returned as-is.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.