blob: 89dd49f0ed43076347401219f24d10516307d9b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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),
))
}
|