appConstants

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package appConstants publish default application/system constants

Index

Constants

View Source
const (
	Solution      = "solution"
	Microservice  = "microservice"
	PackageGroup  = "package group"
	Package       = "package"
	Function      = "function"
	UseCase       = "use case"
	Table         = "table"
	Collection    = "collection"
	Documentation = "documentation"
	FastLinks     = "fast links"
)
View Source
const (
	USD   = "united states dollar"
	CAD   = "canadian dollar"
	FRF   = "french franc"
	NGN   = "nigeria naira"
	Other = "other"
)
View Source
const (
	Development = "development"
	Test        = "test"
	Production  = "production"
	Live        = "live"
)
View Source
const (
	EnglishUS     = "en-US"
	EnglishCanada = "en-CA"
	EnglishUK     = "en-UK"
	FrenchFrance  = "fr-FR"
	FrenchCanada  = "fr-CA"
)
View Source
const (
	ApiTimeout         = 10 * 1000               // 10 seconds, in milliseconds
	LoginTimeout       = 24 * 60 * 60 * 1000     // 24 hours, in milliseconds
	StateTimeout       = 30 * 60 * 1000          // 30 minutes, in milliseconds
	RememberTimeout    = 5 * 24 * 60 * 60 * 1000 // 5 days, in milliseconds
	PageCacheExpire    = 30 * 60 * 1000          // 30 minutes, in milliseconds
	DbCacheExpire      = 5 * 60 * 1000           // 5 minutes, in milliseconds
	ShortDesc          = 20                      // length/slice of a long string to return
	MaxFileCount       = 20
	MaxProductQty      = 20
	MaxQueryLimit      = 100000
	MaxFileSize        = 10485760 // in bytes
	DefaultLanguage    = "en-US"
	DefaultCurrency    = "usd"
	ReadLogType        = "read"
	CreateLogType      = "create"
	SearchLogType      = "search"
	UpdateLogType      = "update"
	RemoveLogType      = "remove"
	DeleteLogType      = "delete"
	LoginLogType       = "login"
	LogoutLogType      = "logout"
	LogAll             = false
	LogCrud            = false
	LogCreate          = true
	LogUpdate          = true
	LogDelete          = true
	LogRead            = false
	LogLogin           = true
	LogLogout          = false
	LogSearch          = false
	DefaultCart        = "Cart"
	DefaultWish        = "Wish List"
	LoginRequired      = false
	RecursiveDelete    = false
	PasswordMinLength  = 6
	LoginNameMinLength = 6
	LoginMaxRetry      = 5
	LoginLockoutTime   = 15 * 60 * 1000 // 15 minutes, in milliseconds
)

Default application[system] constants

Variables

This section is empty.

Functions

func AllowedDocTypes

func AllowedDocTypes() []string

AllowedDocTypes function returns the supported document types for upload

func AppCurrencies added in v0.4.1

func AppCurrencies() []string

func ContentAccess added in v0.4.1

func ContentAccess() []string

func ContentTypes added in v0.4.1

func ContentTypes() []string

func LoginServices

func LoginServices() []string

LoginServices function returns supported third-party login services

func PermittedUserChangeRequests added in v0.4.1

func PermittedUserChangeRequests() []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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