mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
320679467b
* feat: change login to command side * feat: change login to command side * fix: fix push on user * feat: user command side * feat: sign out * feat: command side login * feat: command side login * feat: fix register user * feat: fix register user * feat: fix web auth n events * feat: add machine keys * feat: send codes * feat: move authrequest to domain * feat: move authrequest to domain * feat: webauthn working * feat: external users * feat: external users login * feat: notify users * fix: tests * feat: cascade remove user grants on project remove * fix: webauthn * fix: pr requests * fix: register human with member * fix: fix bugs * fix: fix bugs
25 lines
799 B
Go
25 lines
799 B
Go
package notification
|
|
|
|
import (
|
|
"context"
|
|
"github.com/caos/logging"
|
|
sd "github.com/caos/zitadel/internal/config/systemdefaults"
|
|
"github.com/caos/zitadel/internal/notification/repository/eventsourcing"
|
|
"github.com/caos/zitadel/internal/v2/command"
|
|
"github.com/rakyll/statik/fs"
|
|
|
|
_ "github.com/caos/zitadel/internal/notification/statik"
|
|
)
|
|
|
|
type Config struct {
|
|
Repository eventsourcing.Config
|
|
}
|
|
|
|
func Start(ctx context.Context, config Config, systemDefaults sd.SystemDefaults, command *command.CommandSide) {
|
|
statikFS, err := fs.NewWithNamespace("notification")
|
|
logging.Log("CONFI-7usEW").OnError(err).Panic("unable to start listener")
|
|
|
|
_, err = eventsourcing.Start(config.Repository, statikFS, systemDefaults, command)
|
|
logging.Log("MAIN-9uBxp").OnError(err).Panic("unable to start app")
|
|
}
|