package
Version:
v0.0.0-...-80937f0
Opens a new window with list of versions in this module.
Published: May 26, 2021
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Copyright 2020-2021 William Perron. All rights reserved. MIT License.
Copyright 2020-2021 William Perron. All rights reserved. MIT License.
InsertFiles iterates over a channel of DenoInfo and inserts every specifier
in it in the DGraph cluster
InsertModules is a passthrough function that makes sure the Module and
ModuleVersion exist in the graph before inserting the Version's files.
type File struct {
Uid string `json:"uid,omitempty"`
Specifier string `json:"specifier,omitempty"`
DependsOn []File `json:"depends_on,omitempty"`
DType []string `json:"dgraph.type,omitempty"`
}
type Item struct {
Specifier string `json:"specifier"`
Uid string `json:"uid,omitempty"`
}
type Module struct {
Uid string `json:"uid,omitempty"`
Name string `json:"name,omitempty"`
Stars int `json:"stars,omitempty"`
Description string `json:"description,omitempty"`
Version []ModuleVersion `json:"version,omitempty"`
DType []string `json:"dgraph.type,omitempty"`
}
type ModuleVersion struct {
Uid string `json:"uid,omitempty"`
ModuleVersion string `json:"module_version,omitempty"`
README string `json:"README,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.