type golang.org/x/pkgsite/internal.Module
34 uses
golang.org/x/pkgsite/internal (current package)
discovery.go#L147: type Module struct {
discovery.go#L156: func (m *Module) Packages() []*Unit {
nonredist.go#L10: func (m *Module) RemoveNonRedistributableData() {
golang.org/x/pkgsite/internal/fetch
fetch.go#L106: Module *internal.Module
fetch.go#L292: func processZipFile(ctx context.Context, modulePath string, resolvedVersion string, commitTime time.Time, zipReader *zip.Reader, sourceClient *source.Client) (_ *internal.Module, _ []*internal.PackageVersionState, err error) {
fetch.go#L318: return &internal.Module{
fetch.go#L337: func processGoModFile(goModBytes []byte, mod *internal.Module) (err error) {
golang.org/x/pkgsite/internal/localdatasource
datasource.go#L32: loadedModules map[string]*internal.Module
datasource.go#L40: loadedModules: make(map[string]*internal.Module),
golang.org/x/pkgsite/internal/postgres
insert_module.go#L35: func (db *DB) InsertModule(ctx context.Context, m *internal.Module, lmv *internal.LatestModuleVersions) (isLatest bool, err error) {
insert_module.go#L75: func (db *DB) saveModule(ctx context.Context, m *internal.Module, lmv *internal.LatestModuleVersions) (isLatest bool, err error) {
insert_module.go#L212: func insertModule(ctx context.Context, db *database.DB, m *internal.Module) (_ int, err error) {
insert_module.go#L261: func insertLicenses(ctx context.Context, db *database.DB, m *internal.Module, moduleID int) (err error) {
insert_module.go#L299: func insertImportsUnique(ctx context.Context, tx *database.DB, m *internal.Module) (err error) {
insert_module.go#L329: func (pdb *DB) insertUnits(ctx context.Context, db *database.DB, m *internal.Module, moduleID int, pathToID map[string]int) (err error) {
insert_module.go#L433: func insertPaths(ctx context.Context, tx *database.DB, m *internal.Module) (pathToID map[string]int, err error) {
insert_module.go#L765: func validateModule(m *internal.Module) (err error) {
insert_module.go#L827: func (db *DB) comparePaths(ctx context.Context, m *internal.Module) (err error) {
search.go#L629: func upsertSearchDocuments(ctx context.Context, ddb *database.DB, mod *internal.Module) (err error) {
test_helper.go#L204: func MustInsertModule(ctx context.Context, t *testing.T, db *DB, m *internal.Module) {
test_helper.go#L208: func MustInsertModuleGoMod(ctx context.Context, t *testing.T, db *DB, m *internal.Module, goMod string) {
test_helper.go#L212: func MustInsertModuleNotLatest(ctx context.Context, t *testing.T, db *DB, m *internal.Module) {
test_helper.go#L216: func mustInsertModule(ctx context.Context, t *testing.T, db *DB, m *internal.Module, goMod string, latest bool) {
golang.org/x/pkgsite/internal/proxydatasource
datasource.go#L82: module *internal.Module
datasource.go#L88: func (ds *DataSource) getModule(ctx context.Context, modulePath, version string, _ internal.BuildContext) (_ *internal.Module, err error) {
datasource.go#L183: var m *internal.Module
golang.org/x/pkgsite/internal/testing/sample
sample.go#L175: func DefaultModule() *internal.Module {
sample.go#L182: func Module(modulePath, version string, suffixes ...string) *internal.Module {
sample.go#L184: m := &internal.Module{
sample.go#L242: func AddPackage(m *internal.Module, pkg *internal.Unit) *internal.Module {
sample.go#L300: func AddUnit(m *internal.Module, u *internal.Unit) {
sample.go#L309: func AddLicense(m *internal.Module, lic *licenses.License) {
sample.go#L324: func ReplaceLicense(m *internal.Module, lic *licenses.License) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |