mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
22 lines
443 B
Go
22 lines
443 B
Go
package auth
|
|
|
|
import (
|
|
"context"
|
|
"github.com/caos/logging"
|
|
|
|
"github.com/caos/zitadel/internal/api/auth"
|
|
app "github.com/caos/zitadel/internal/auth"
|
|
"github.com/caos/zitadel/pkg/auth/api"
|
|
)
|
|
|
|
type Config struct {
|
|
App app.Config
|
|
API api.Config
|
|
}
|
|
|
|
func Start(ctx context.Context, config Config, authZ auth.Config) error {
|
|
err := api.Start(ctx, config.API)
|
|
logging.Log("MAIN-udjed").OnError(err).Panic("unable to start api")
|
|
return err
|
|
}
|