mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
Add scaffolding for scope
package
This commit is contained in:
@ -14,6 +14,7 @@ import (
|
||||
"github.com/dstotijn/hetty/pkg/db/cayley"
|
||||
"github.com/dstotijn/hetty/pkg/proxy"
|
||||
"github.com/dstotijn/hetty/pkg/reqlog"
|
||||
"github.com/dstotijn/hetty/pkg/scope"
|
||||
|
||||
"github.com/99designs/gqlgen/graphql/handler"
|
||||
"github.com/99designs/gqlgen/graphql/playground"
|
||||
@ -64,7 +65,11 @@ func main() {
|
||||
}
|
||||
defer db.Close()
|
||||
|
||||
reqLogService := reqlog.NewService(db)
|
||||
scope := scope.New(nil)
|
||||
reqLogService := reqlog.NewService(reqlog.Config{
|
||||
Scope: scope,
|
||||
Repository: db,
|
||||
})
|
||||
|
||||
p, err := proxy.NewProxy(caCert, caKey)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user