constantmdl

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package constantmdl helps saving constants

Index

Constants

View Source
const (
	MAX_RANDOM_STRING_LENGTH = 256
	RANDOM_STRING_LENGTH     = 16
	NUMBERS_PERCENT          = 10
	SMALL_CHARS_PERCENT      = 40
	CAP_CHARS_PERCENT        = 40
	SPECIAL_CHARS_PERCENT    = 10
	CharSet                  = "" /* 256-byte string literal not displayed */
	NUMBERS_SET              = "0123456789"
	SMALL_CHARS_SET          = "abcdefghijklmnopqrstuvwxyz"
	CAP_CHARS_SET            = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	SPECIAL_CHARS_SET        = "!#$%&'()*+,-./:;<=>?@[]^_`{|}~"
)

constants used for CreateSecurityKey function in securitymdl

View Source
const (
	// MAX_IDLE_CONNECTIONS - MaxIdleConns
	MAX_IDLE_CONNECTIONS = 100
	// MAX_OPEN_CONNECTIONS - MaxOpenConns
	MAX_OPEN_CONNECTIONS = 5000
	// CONNECTION_MAX_LIFETIME - ConnMaxLifetime
	CONNECTION_MAX_LIFETIME = 3 * 24 * time.Hour

	MIME        = "MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"
	COUNTRYCODE = "91"

	MQLRequestData = "MQLRequestData"

	ResponseSizeThreshold = 50000 //(bytes)

	HEAVYDATA = "HEAVYDATA"

	// SEQUENTIAL - SEQUENTIAL
	SEQUENTIAL = "SEQUENTIAL"

	// CONDITIONAL - CONDITIONAL
	CONDITIONAL = "CONDITIONAL"

	// BranchSeparator separates entity name and branch name ex. <entityName>_<branchName>
	Branch_Separator = "_"
	// Branch_Main represents default "main" branch
	Branch_Main = "main"
)

MySQL Default Parameters

View Source
const HTTP400ERROR = 400

HTTP400ERROR is used to check 400 status

View Source
const IDLECONNTIMEOUT = time.Second * 90

IDLECONNTIMEOUT - Idle time out

View Source
const MAXIDLECONNS = 100

MAXIDLECONNS - max idle connections

View Source
const MAXIDLECONNSPERHOST = 100

MAXIDLECONNSPERHOST - max connections per host

View Source
const MINUS_ONE = -1

MINUS_ONE is constant for -1

View Source
const STAR = "*"

STAR gives *

View Source
const TASKCOUNT = 5

TASKCOUNT is used as default task count in filepipe

View Source
const ZERO = 0

ZERO gives 0

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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