lib

package
v0.0.0-...-76f7c0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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

Functions

func FormatSize

func FormatSize(length int, decimals int) (out string)

func GetDatabaseSecrets

func GetDatabaseSecrets() (*common.DatabaseSecrets, error)

func GetRoleCredentials

func GetRoleCredentials(roleARN, externalID string) (*credentials.Credentials, error)

func GetStructTagValues

func GetStructTagValues(structPtr interface{}, tag string) []string

func HandleRPCError

func HandleRPCError(err error) *models.JSONError

func IsDocument

func IsDocument(value string) bool

func IsImage

func IsImage(value string) bool

func IsValidEmail

func IsValidEmail(value string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL