forked from mtusi2026/mtusi2026lab3
Реализовать lab3 в общем Helm-релизе с Traefik, TLS и HPA
This commit is contained in:
+6
-1
@@ -43,7 +43,7 @@ func CreateApp() fx.Option {
|
||||
fx.Annotate(databaseStore, fx.As(new(store.Interface))),
|
||||
fx.Annotate(databaseAccounts, fx.As(new(service.Accounts))),
|
||||
fx.Annotate(profileCache, fx.As(new(service.ProfileCache))),
|
||||
fx.Annotate(cursor.New, fx.As(new(service.CursorCodec))),
|
||||
fx.Annotate(newCursor, fx.As(new(service.CursorCodec))),
|
||||
fx.Annotate(production.NewCached, fx.As(new(service.Service))),
|
||||
fx.Annotate(fiberctrl.New, fx.As(new(controller.Controller))),
|
||||
),
|
||||
@@ -95,3 +95,8 @@ func databaseAccounts(database *postgres.Store) service.Accounts {
|
||||
func profileCache(client *valkey.Client) service.ProfileCache {
|
||||
return client
|
||||
}
|
||||
|
||||
// newCursor binds the shared signing secret at the composition root.
|
||||
func newCursor(cfg *config.Persistence) (*cursor.Codec, error) {
|
||||
return cursor.NewShared(cfg.CursorKey)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user