generated from maximegris/angular-electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding some validation stuff to scoreboards
- Loading branch information
1 parent
20f6fa8
commit 93e5081
Showing
7 changed files
with
3,540 additions
and
3,368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package isc | ||
|
||
import ( | ||
"github.com/trevinteacutter/mwo-helper/pkg/helper/pages/series" | ||
) | ||
|
||
var _ series.Validator = (*Validator)(nil) | ||
|
||
type Validator struct{} | ||
|
||
func (v *Validator) Name() string { | ||
return "ISC" | ||
} | ||
|
||
func (v *Validator) Validate(_ series.MatchDetails, _ ...series.MatchDetails) map[string]error { | ||
validations := make(map[string]error) | ||
|
||
validations["Tonnage Limit"] = nil | ||
validations["Chassis Limit"] = nil | ||
validations["Hero Limit"] = nil | ||
validations["Legend Limit"] = nil | ||
validations["Tech Base Limit"] = nil | ||
validations["Player Limit"] = nil | ||
|
||
return validations | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
package series | ||
|
||
type Validator func(match MatchDetails, previous ...MatchDetails) map[string]error | ||
type Validator interface { | ||
Name() string | ||
Validate(match MatchDetails, previous ...MatchDetails) map[string]error | ||
} |
Oops, something went wrong.