Add config file

This commit is contained in:
Omar Roth
2018-03-09 12:42:23 -06:00
parent e22d6d8549
commit eb1d1e30d1
3 changed files with 37 additions and 3 deletions

View File

@@ -13,6 +13,20 @@ macro templated(filename)
render "src/views/#{{{filename}}}.ecr", "src/views/layout.ecr"
end
class Config
YAML.mapping({
pool_size: Int32,
threads: Int32,
db: NamedTuple(
user: String,
password: String,
host: String,
port: Int32,
dbname: String,
),
})
end
class Video
module HTTPParamConverter
def self.from_rs(rs)