zitadel/pkg/admin/admin.go

22 lines
450 B
Go
Raw Normal View History

2020-03-18 14:46:41 +00:00
package admin
import (
"context"
2020-03-25 09:54:45 +00:00
"github.com/caos/logging"
2020-03-25 06:58:58 +00:00
app "github.com/caos/zitadel/internal/admin"
"github.com/caos/zitadel/internal/api/auth"
"github.com/caos/zitadel/pkg/admin/api"
2020-03-18 14:46:41 +00:00
)
type Config struct {
2020-03-25 06:58:58 +00:00
App *app.Config
API *api.Config
2020-03-18 14:46:41 +00:00
}
2020-03-25 06:58:58 +00:00
func Start(ctx context.Context, config *Config, authZ *auth.Config) error {
2020-03-25 09:54:45 +00:00
err := api.Start(ctx, config.API)
logging.Log("MAIN-BmOLI").OnError(err).Panic("unable to start api")
return err
2020-03-18 14:46:41 +00:00
}