aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Data.jl27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Data.jl b/src/Data.jl
index c1323b6..951a1b2 100644
--- a/src/Data.jl
+++ b/src/Data.jl
@@ -1,5 +1,32 @@
module Data
+using Downloads: download
using TOML
+import Base: getindex, setindex
+
+struct Source
+end
+
+struct Index
+ filename::String
+ sources::Dict{String, Source}
+end
+
+function Index(filename::String)::Index
+ sources = Dict{String, Source}()
+ return Index(filename, sources)
+end
+
+function save(index::Index)
+end
+
+function getindex(index::Index, k::String)::Source
+ index.sources[k]
+end
+
+function setindex!(index::Index, k::String, s::Source)
+ index.sources[k] = s
+end
+
end