Skip to content

Commit a2a6b22

Browse files
committed
Collapse search models into one file
1 parent 5c29ff5 commit a2a6b22

File tree

5 files changed

+26
-29
lines changed

5 files changed

+26
-29
lines changed

internal/model/dns.go

Lines changed: 0 additions & 8 deletions
This file was deleted.

internal/model/golang.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

internal/model/npm.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

internal/model/pypi.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

internal/model/search.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package model
2+
3+
import "net"
4+
5+
type GoPackageResult struct {
6+
Name string // Package name
7+
Path string // Fully qualified package path
8+
Description string // Package description
9+
}
10+
11+
type NPMPackageResult struct {
12+
Name string // Package name
13+
Description string // Package description
14+
IsExactMatch bool // Is exact match?
15+
}
16+
17+
type PyPIPackageResult struct {
18+
Name string // Package name
19+
Description string // Package description
20+
Author string // Package author
21+
}
22+
23+
type DNSResult struct {
24+
FQDN string // Fully qualified domain name
25+
IPList []net.IP // Associated IP addresses
26+
}

0 commit comments

Comments
 (0)