summaryrefslogtreecommitdiff
path: root/package.go
blob: 2ab54300a3b8b3a5a7ec62f915199290ca834fc2 (plain) (blame)
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
27
28
29
30
package main

type Config struct {
	Title    string    `json:"title"`
	Host     string    `json:"host"`
	Packages *Packages `json:"packages"`
}

type Packages map[string]Package

type Package struct {
	Pkg         string `json:"pkg"`
	VCS         string `json:"vcs"`
	Repo        string `json:"repo"`
	Description string `json:"desc"`
}

type pageRenderContext struct {
	Title   string
	Package *Package
	Host    string
	Doc     string
}

type indexRenderContext struct {
	Title    string
	Packages *Packages
	Host     string
	Doc      string
}