Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultHTTPAddress = "localhost:5001"
DefaultHTTPAddress is the default shell address
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreDocumentLoader ¶
type CoreDocumentLoader struct {
// contains filtered or unexported fields
}
CoreDocumentLoader is an implementation of ld.DocumentLoader for ipfs:// and dweb:/ipfs/ URIs that an core.CoreAPI
func NewCoreDocumentLoader ¶
func NewCoreDocumentLoader(api core.CoreAPI) *CoreDocumentLoader
NewCoreDocumentLoader creates a new instance of DwebDocumentLoader
func (*CoreDocumentLoader) LoadDocument ¶
func (dl *CoreDocumentLoader) LoadDocument(uri string) (*ld.RemoteDocument, error)
LoadDocument returns a RemoteDocument containing the contents of the JSON-LD resource from the given URL.
type HTTPDocumentLoader ¶
type HTTPDocumentLoader struct {
// contains filtered or unexported fields
}
HTTPDocumentLoader is an implementation of ld.DocumentLoader for ipfs:// and dweb:/ipfs/ URIs that uses an ipfs.HTTP
func NewHTTPDocumentLoader ¶
func NewHTTPDocumentLoader(shell *ipfs.Shell) *HTTPDocumentLoader
NewHTTPDocumentLoader creates a new instance of HTTPDocumentLoader
func (*HTTPDocumentLoader) LoadDocument ¶
func (dl *HTTPDocumentLoader) LoadDocument(uri string) (*ld.RemoteDocument, error)
LoadDocument returns a RemoteDocument containing the contents of the JSON-LD resource from the given URL.
Click to show internal directories.
Click to hide internal directories.