mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
8dcbbc87ca
* fix: adaot config to commands (and queries) * remove dependency on vv2 in v1 * add queries user to operator * set password for queries on tests * set password for queries on tests * fix config
25 lines
793 B
Go
25 lines
793 B
Go
package notification
|
|
|
|
import (
|
|
"context"
|
|
"github.com/caos/logging"
|
|
"github.com/caos/zitadel/internal/command"
|
|
sd "github.com/caos/zitadel/internal/config/systemdefaults"
|
|
"github.com/caos/zitadel/internal/notification/repository/eventsourcing"
|
|
"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.Commands) {
|
|
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")
|
|
}
|