zitadel/pkg/admin/admin.go
2020-03-25 10:54:45 +01:00

22 lines
450 B
Go

package admin
import (
"context"
"github.com/caos/logging"
app "github.com/caos/zitadel/internal/admin"
"github.com/caos/zitadel/internal/api/auth"
"github.com/caos/zitadel/pkg/admin/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-BmOLI").OnError(err).Panic("unable to start api")
return err
}