Documentation ¶
Index ¶
- Constants
- Variables
- func FormatSize(length int, decimals int) (out string)
- func GetDatabaseSecrets() (*common.DatabaseSecrets, error)
- func GetRoleCredentials(roleARN, externalID string) (*credentials.Credentials, error)
- func GetStructTagValues(structPtr interface{}, tag string) []string
- func HandleRPCError(err error) *models.JSONError
- func IsDocument(value string) bool
- func IsImage(value string) bool
- func IsValidEmail(value string) bool
Constants ¶
View Source
const ( ImageExtensionPattern string = "([.|\\w|\\s|-])*\\.(?:jpg|gif|png|JPG|GIF|PNG)" DocumentExtensionPattern string = "([.|\\w|\\s|-])*\\.(?:pdf|xlsx|csv)" EmailPattern string = "" /* 1208-byte string literal not displayed */ )
View Source
const ( TB = 1000000000000 GB = 1000000000 MB = 1000000 KB = 1000 )
Variables ¶
View Source
var ( ImageRegex = regexp.MustCompile(ImageExtensionPattern) DocumentRegex = regexp.MustCompile(DocumentExtensionPattern) EmailRegex = regexp.MustCompile(EmailPattern) )
Functions ¶
func FormatSize ¶
func GetDatabaseSecrets ¶
func GetDatabaseSecrets() (*common.DatabaseSecrets, error)
func GetRoleCredentials ¶
func GetRoleCredentials(roleARN, externalID string) (*credentials.Credentials, error)
func GetStructTagValues ¶
func HandleRPCError ¶
func IsDocument ¶
func IsValidEmail ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.