gitlab.com/evatix-go/core@v1.3.55/coreinterface/enuminf/all-checkers.go (about)

     1  package enuminf
     2  
     3  type IsValidChecker interface {
     4  	// IsValid similar or alias for IsSuccessChecker
     5  	IsValid() bool
     6  }
     7  
     8  type IsInvalidChecker interface {
     9  	IsInvalid() bool
    10  }
    11  
    12  type IsValidInvalidChecker interface {
    13  	IsValidChecker
    14  	IsInvalidChecker
    15  }
    16  
    17  type IsNameEqualer interface {
    18  	IsNameEqual(name string) bool
    19  }
    20  
    21  // IsAnyNameOfChecker
    22  //
    23  //  Returns true if any of the name matches.
    24  type IsAnyNameOfChecker interface {
    25  	// IsAnyNamesOf
    26  	//
    27  	//  Returns true if any of the name matches.
    28  	IsAnyNamesOf(names ...string) bool
    29  }
    30  
    31  type RangeValidateChecker interface {
    32  	// RangesInvalidMessage get invalid message
    33  	RangesInvalidMessage() string
    34  	// RangesInvalidErr get invalid message error
    35  	RangesInvalidErr() error
    36  	// IsValidRange Is with in the range as expected.
    37  	IsValidRange() bool
    38  	// IsInvalidRange Is out of the ranges expected.
    39  	IsInvalidRange() bool
    40  }
    41  
    42  type IsStartChecker interface {
    43  	IsStart() bool
    44  }
    45  
    46  type IsEndChecker interface {
    47  	IsEnd() bool
    48  }
    49  
    50  type IsStartEndChecker interface {
    51  	IsStartChecker
    52  	IsEndChecker
    53  }