summaryrefslogtreecommitdiff
path: root/pkg/app/app.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-02 14:29:41 -0600
committermo khan <mo@mokhan.ca>2025-05-02 14:29:41 -0600
commitc583bcd1473205104a1e1af812ed4976d30c7baa (patch)
tree933edf78a4ac8aea55256e42641e56bbb4c58834 /pkg/app/app.go
parent91defaefca47e9cebbe92c6abf33c4423df9bc7d (diff)
refactor: remove anything unrelated to the authz daemon
Diffstat (limited to 'pkg/app/app.go')
-rw-r--r--pkg/app/app.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go
deleted file mode 100644
index 89a2bd34..00000000
--- a/pkg/app/app.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package app
-
-import (
- "os"
-
- "github.com/xlgmokha/x/pkg/log"
- "gitlab.com/mokhax/spike/pkg/authz"
- "gitlab.com/mokhax/spike/pkg/cfg"
- "gitlab.com/mokhax/spike/pkg/srv"
-)
-
-func Start(bindAddr string) error {
- logger := log.New(os.Stdout, log.Fields{"app": "gtwy"})
- mux := authz.HTTP(authz.WithCasbin(), Routes())
- return srv.Run(cfg.New(
- bindAddr,
- cfg.WithMux(log.HTTP(logger)(mux)),
- cfg.WithTLS([]string{
- "api.example.com",
- "authzd.example.com",
- "idp.example.com",
- "ui.example.com",
- }),
- ))
-}