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