Documentation ¶
Index ¶
- func BigIntFromString(s string) (*big.Int, error)
- func CheckApprovalType(parameter interface{}, variableName string) error
- func CheckBigInt(parameter interface{}, variableName string) error
- func CheckBigIntRequired(parameter interface{}, variableName string) error
- func CheckBoolean(parameter interface{}, variableName string) error
- func CheckChainId(parameter interface{}, variableName string) error
- func CheckChainIdRequired(parameter interface{}, variableName string) error
- func CheckConnectorTokens(parameter interface{}, variableName string) error
- func CheckEthereumAddress(parameter interface{}, variableName string) error
- func CheckEthereumAddressListRequired(parameter interface{}, variableName string) error
- func CheckEthereumAddressRequired(parameter interface{}, variableName string) error
- func CheckExpireAfterUnix(parameter interface{}, variableName string) error
- func CheckFee(parameter interface{}, variableName string) error
- func CheckFiatCurrency(parameter interface{}, variableName string) error
- func CheckFloat32NonNegativeWhole(parameter interface{}, variableName string) error
- func CheckJsonRpcVersion(parameter interface{}, variableName string) error
- func CheckJsonRpcVersionRequired(parameter interface{}, variableName string) error
- func CheckLimit(parameter interface{}, variableName string) error
- func CheckNodeType(parameter interface{}, variableName string) error
- func CheckOrderHash(parameter interface{}, variableName string) error
- func CheckOrderHashRequired(parameter interface{}, variableName string) error
- func CheckPage(parameter interface{}, variableName string) error
- func CheckPermitHash(parameter interface{}, variableName string) error
- func CheckPrivateKey(parameter interface{}, variableName string) error
- func CheckPrivateKeyRequired(parameter interface{}, variableName string) error
- func CheckProtocols(parameter interface{}, variableName string) error
- func CheckSlippage(parameter interface{}, variableName string) error
- func CheckSlippageRequired(parameter interface{}, variableName string) error
- func CheckSortBy(parameter interface{}, variableName string) error
- func CheckStatusesInts(parameter interface{}, variableName string) error
- func CheckStatusesStrings(parameter interface{}, variableName string) error
- func CheckString(parameter interface{}, variableName string) error
- func CheckStringRequired(parameter interface{}, variableName string) error
- func CheckTimerange(parameter interface{}, variableName string) error
- func ConsolidateValidationErorrs(validationErrors []error) error
- func GetValidatorErrorsCount(validationError error) int
- func HasDuplicates[T comparable](slice []T) bool
- func IsSubset[T comparable](sliceA, sliceB []T) bool
- func NewParameterCustomError(errorMessage string) error
- func NewParameterMissingError(variableName string) error
- func NewParameterValidationError(variableName string, errMessage string) error
- func Parameter(parameter interface{}, variableName string, validationFunc ValidationFunc, ...) []error
- type ValidationFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckApprovalType ¶
func CheckBigInt ¶
func CheckBigIntRequired ¶
func CheckBoolean ¶
func CheckChainId ¶
func CheckChainIdRequired ¶
func CheckConnectorTokens ¶
func CheckEthereumAddress ¶
func CheckExpireAfterUnix ¶
func CheckFiatCurrency ¶
func CheckJsonRpcVersion ¶
func CheckLimit ¶
func CheckNodeType ¶
func CheckOrderHash ¶
func CheckOrderHashRequired ¶
func CheckPermitHash ¶
func CheckPrivateKey ¶
func CheckPrivateKeyRequired ¶
func CheckProtocols ¶
func CheckSlippage ¶
func CheckSlippageRequired ¶
func CheckSortBy ¶
func CheckStatusesInts ¶
func CheckStatusesStrings ¶
func CheckString ¶
func CheckStringRequired ¶
func CheckTimerange ¶
func GetValidatorErrorsCount ¶
GetValidatorErrorsCount uses the number of newlines in the error message to know how many errors were returned
func HasDuplicates ¶
func HasDuplicates[T comparable](slice []T) bool
HasDuplicates checks if the provided slice contains any duplicate elements. It accepts a slice of any comparable type and returns true if there are duplicates, otherwise it returns false.
func IsSubset ¶
func IsSubset[T comparable](sliceA, sliceB []T) bool
IsSubset checks if all elements of sliceA are also present in sliceB. It returns true if sliceA is a subset of sliceB, otherwise it returns false.
func NewParameterCustomError ¶
Types ¶
type ValidationFunc ¶
Click to show internal directories.
Click to hide internal directories.