summaryrefslogtreecommitdiff
path: root/package.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-03-24 23:25:02 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-03-24 23:25:02 +0300
commitcc3ae00bbbe3bd0e04d1821e4bb54a7d8545d0a3 (patch)
treec17e0f623c038f35ff191572717213d6374da75c /package.go
initial
Diffstat (limited to 'package.go')
-rw-r--r--package.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/package.go b/package.go
new file mode 100644
index 0000000..2ab5430
--- /dev/null
+++ b/package.go
@@ -0,0 +1,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
+}