Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachedDocument ¶
type CachedDocument struct {
// contains filtered or unexported fields
}
func NewCachedDocument ¶
func NewCachedDocument(r io.ReadCloser, cacheDir string, docHashType crypto.Hash) (*CachedDocument, error)
func (*CachedDocument) Close ¶
func (d *CachedDocument) Close() error
type DocumentLoader ¶
type DocumentLoader struct {
// contains filtered or unexported fields
}
func NewDocumentLoader ¶
func NewDocumentLoader(httpClient *http.Client, grappDir string, objectsDir string) *DocumentLoader
func (*DocumentLoader) LoadDocument ¶
func (dl *DocumentLoader) LoadDocument(u string) (*ld.RemoteDocument, error)
Loads JSON-LD documents from local or http paths Implements github.com/piprate/ld/DocumentLoader interface
type FileGrapplicationResource ¶
type FileGrapplicationResource struct { }
Click to show internal directories.
Click to hide internal directories.