summaryrefslogtreecommitdiff
path: root/types.go
blob: 9bb4c2da428459faf1d66a157794920ab3f089e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main

type Vendor struct {
	Name    string
	GetURL  func(id string) string
	GetName func(id string, url string) string
}

type Type int

const (
	Full  Type = 0
	Patch Type = 1
)

type Edition struct {
	Name string
	Docs []Document
}

type Document struct {
	Vendor    Vendor
	Type      Type
	ID        string
	Resellers []Document
}