games struct stubbed

This commit is contained in:
bel
2024-12-14 21:36:08 -07:00
parent 81af991c58
commit f40fdd60da
3 changed files with 16 additions and 0 deletions

View File

@@ -27,10 +27,16 @@ func run(ctx context.Context) error {
return err
}
db, err := NewDB(ctx, config.DB.Scheme, config.DB.Conn)
if err != nil {
return err
}
S := &S{
ctx: ctx,
limiter: rate.NewLimiter(10, 10),
config: config,
games: NewGames(db),
}
s := &http.Server{