Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TransactionIDRegex regex for lbry transaction id TransactionIDRegex = `^[A-Za-z0-9]{64}$` // // TransactionID validator to validate a parameter TransactionID = v.NewStringRule(func(str string) bool { return matchesRegex(TransactionIDRegex, str) }, "Invalid transaction id") // ClaimIDRegex regex for lbry claim ids ClaimIDRegex = `^[A-Za-z0-9]{40}$` // ClaimID validator to validate a claim id paramter ClaimID = v.NewStringRule(func(str string) bool { return matchesRegex(ClaimIDRegex, str) }, "Invalid claim id") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.