// MustNewControlPlane creates a new control plane
MustNewControlPlane creates a new control plane
// MustNewControlPlane creates a new control plane
func MustNewControlPlane() *ControlPlane {
	cp := &ControlPlane{}
	cp.prepareEcho()
	cp.Encryptor = crypto.MustNewEncryptor()
	cp.Hasher = crypto.MustNewHasher()
	cp.Validator = validator.New()
	repo, enforcer, err := repo.NewRepoEnforcer(cp.Logger)
	if err != nil {
		panic(err)
	}
	cp.Repo = repo
	cp.Enforcer = enforcer
	return cp
}
func MustNewControlPlane ( ) * ControlPlane { cp := & ControlPlane { } cp . prepareEcho ( ) cp . Encryptor = crypto . MustNewEncryptor ( ) cp . Hasher = crypto . MustNewHasher ( ) cp . Validator = validator . New ( ) repo , enforcer , err := repo . NewRepoEnforcer ( cp . Logger ) if err != nil { panic ( err ) } cp . Repo = repo cp . Enforcer = enforcer return cp }
MustNewControlPlane creates a new control plane
MustNewControlPlane creates a new control plane