diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/sts/main.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cmd/sts/main.go b/cmd/sts/main.go new file mode 100644 index 0000000..89dd49f --- /dev/null +++ b/cmd/sts/main.go @@ -0,0 +1,22 @@ +package main + +import ( + "context" + "net/http" + "os" + + "github.com/xlgmokha/x/pkg/log" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/sts" +) + +func main() { + logger := log.New(os.Stdout, log.Fields{"app": "sts"}) + ctx := logger.WithContext(context.Background()) + + logger.Log().Str("status", "ready").Send() + pls.LogError(ctx, http.ListenAndServe( + ":9090", + sts.New(ctx), + )) +} |
