gitlab.com/evatix-go/core@v1.3.55/internal/internalinterface/all-checkers.go (about) 1 package internalinterface 2 3 type IsIdentifierEqualer interface { 4 IsIdentifier(identifier string) bool 5 } 6 7 type IsIdEqualer interface { 8 IsId(id string) bool 9 } 10 11 type IsIdUnsignedIntegerEqualer interface { 12 IsId(id uint) bool 13 } 14 15 type HasErrorChecker interface { 16 HasError() bool 17 } 18 19 type IsValidChecker interface { 20 // IsValid similar or alias for IsSuccessChecker 21 IsValid() bool 22 } 23 24 type IsInvalidChecker interface { 25 IsInvalid() bool 26 } 27 type IsSuccessChecker interface { 28 // IsSuccess No error 29 IsSuccess() bool 30 } 31 32 type IsFailedChecker interface { 33 // IsFailed has error or any other issues, or alias for HasIssues or HasError 34 IsFailed() bool 35 } 36 37 type IsSuccessValidator interface { 38 IsValidChecker 39 IsSuccessChecker 40 IsFailedChecker 41 } 42 43 type IsEmptyChecker interface { 44 IsEmpty() bool 45 } 46 47 type IsEmptyErrorChecker interface { 48 IsEmptyError() bool 49 } 50 51 type IsErrorEqualsChecker interface { 52 IsErrorEquals(err error) bool 53 IsErrorMessageEqual(msg string) bool 54 IsErrorMessage(msg string, isCaseSensitive bool) bool 55 IsErrorMessageContains( 56 msg string, 57 isCaseSensitive bool, 58 ) bool 59 } 60 61 type HasErrorOrHasAnyErrorChecker interface { 62 HasError() bool 63 HasAnyError() bool 64 }