Documentation
¶
Index ¶
- Constants
- func GenerateChecksumId(prefix string, key string) (new_id string)
- func GenerateKeyIdFromName(name string) string
- func GenerateNextKeyId(name string) string
- func GenerateUniqueId(_prefix string) (prefix string)
- func GetMD5Hash(text string) string
- func GetRandomOTP(maxDigits int) string
- func IsEmpty(str string) bool
- func IsMemberExist(data Map, member string) (string, error)
- func MakeCapitalRandomString(n int) string
- func MakeRandomString(n int) string
- func RemoveSpecialChars(str string) string
- func RemoveWhiteSpaces(str string) string
- func ReplaceString(str string, old string, new string) string
- func SHA(text string) string
- func ToLower(str string) string
- func ToTitle(str string) string
- func ToUppper(str string) string
- func Trim(str string) string
- func TrimAll(str string) string
- func ValidateDocumentKey(id string) (bool, error)
- type AppActions
- type AppError
- type AppFunction
- type AppModule
- type AppSubModule
- type Map
Constants ¶
View Source
const ( CHAR_EMPTY = "" CHAR_WHITESPACE = " " CHAR_FORWARD_SLASH = "/" CHAR_BACKWARD_SLASH = "\\" CHAR_HYPHEN = "-" CHAR_COMMA = "," BYTE_HYPHEN = '-' )
Variables ¶
This section is empty.
Functions ¶
func GenerateChecksumId ¶
func GenerateKeyIdFromName ¶
func GenerateNextKeyId ¶
func GenerateUniqueId ¶
func GetMD5Hash ¶
func GetRandomOTP ¶ added in v1.0.1
func MakeCapitalRandomString ¶
func MakeRandomString ¶
func RemoveSpecialChars ¶
func RemoveWhiteSpaces ¶
Types ¶
type AppActions ¶
type AppError ¶
type AppError struct { ErrorStatus int ErrorCode string /* [A..action/S.. Service/D.. Dao /X.. External API][X AABBCCEE]*/ ErrorMsg string ErrorDetail string }
Error -- Application Error Structure
type AppFunction ¶
type AppFunction struct { FunctionName string `json:"function_name"` Permission string `json:"permission"` }
AppFunction -- Application Function Structure
type AppModule ¶
type AppModule struct { ModuleName string `json:"module_name"` Permission string `json:"permission"` SubModules []AppSubModule `json:"submodules"` }
type AppSubModule ¶
type AppSubModule struct { SubModuleName string `json:"module_name"` Permission string `json:"permission"` Functions []AppFunction `json:"functions"` }
Click to show internal directories.
Click to hide internal directories.