preloaded

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CBOOL = "bool"

cBOOL !

View Source
const CCODE = "code"

cCODE !

View Source
const CDATE = "date"

cDATE !

View Source
const CEMAIL = "email"

cEMAIL !

View Source
const CFILE = "file"

cFILE !

View Source
const CFK = "fk"

cFK !

View Source
const CGIF = "gif"

cGIF gif

View Source
const CHTML = "html"

cHTML !

View Source
const CID = "id"

cID true

View Source
const CIMAGE = "image"

cIMAGE !

View Source
const CJPEG = "jpeg"

cJPEG jpeg

View Source
const CJPG = "jpg"

cJPG jpg

View Source
const CLINK = "link"

cLINK !

View Source
const CLIST = "list"

cLIST !

View Source
const CM2M = "m2m"

cM2M !

View Source
const CMONEY = "money"

cMONRY !

View Source
const CMULTILINGUAL = "multilingual"

cMULTILINGUAL !

View Source
const CNUMBER = "number"

cNUMBER !

View Source
const CPASSWORD = "password"

cPASSWORD !

View Source
const CPNG = "png"

cPNG png

View Source
const CPOST = "POST"

cPOST post

View Source
const CPROGRESSBAR = "progress_bar"

cPROGRESSBAR !

View Source
const CSTRING = "string"

cSTRING !

View Source
const CTRUE = "true"

cTRUE true

View Source
const Version = "0.6.2"

Version number as per Semantic Versioning 2.0.0 (semver.org)

View Source
const VersionCodeName = "Beetle"

VersionCodeName is the cool name we give to versions with significant changes. This name should always be a bug's name starting from A-Z them revolving back. This started at version 0.5.0 (Atlas Moth) 0.6.0 Beetle

Variables

View Source
var APIDisabledAdd = false

APIDisabledAdd controls the data API's disabled for add commands.

View Source
var APIDisabledDelete = false

APIDisabledDelete controls the data API's disabled for delete commands.

View Source
var APIDisabledEdit = false

APIDisabledEdit controls the data API's disabled for edit commands.

View Source
var APIDisabledRead = false

APIDisabledRead controls the data API’s disabled for add commands.

View Source
var APIDisabledSchema = false

APIDisabledSchema controls the data API's disabled for schema commands.

View Source
var APILogAdd = true

APILogAdd controls the data API's logging for add commands.

View Source
var APILogDelete = true

APILogDelete controls the data API's logging for delete commands.

View Source
var APILogEdit = true

APILogEdit controls the data API's logging for edit commands.

View Source
var APILogRead = false

APILogRead controls the data API's logging for read commands.

View Source
var APILogSchema = true

APILogSchema controls the data API's logging for schema commands.

View Source
var APIPostQueryAdd = false

APIPostQueryAdd controls the data API's post query for add commands.

View Source
var APIPostQueryDelete = false

APIPostQueryDelete controls the data API's post query for delete commands.

View Source
var APIPostQueryEdit = false

APIPostQueryEdit controls the data API's post query for edit commands.

View Source
var APIPostQueryRead = false

APIPostQueryRead controls the data API’s post query for add commands.

View Source
var APIPostQuerySchema = false

APIPostQuerySchema controls the data API's post query for schema commands.

View Source
var APIPreQueryAdd = false

APIPreQueryAdd controls the data API's pre query for add commands.

View Source
var APIPreQueryDelete = false

APIPreQueryDelete controls the data API's pre query for delete commands.

View Source
var APIPreQueryEdit = false

APIPreQueryEdit controls the data API's pre query for edit commands.

View Source
var APIPreQueryRead = false

APIPreQueryRead controls the data API’s pre query for add commands.

View Source
var APIPreQuerySchema = false

APIPreQuerySchema controls the data API's pre query for schema commands.

View Source
var APIPublicAdd = false

APIPublicAdd controls the data API's public for add commands.

View Source
var APIPublicDelete = false

APIPublicDelete controls the data API's public for delete commands.

View Source
var APIPublicEdit = false

APIPublicEdit controls the data API's public for edit commands.

View Source
var APIPublicRead = false

APIPublicRead controls the data API’s public for add commands.

View Source
var APIPublicSchema = false

APIPublicSchema controls the data API's public for schema commands.

View Source
var AllowedHosts = "0.0.0.0,127.0.0.1,localhost,::1"

AllowedHosts is a comma seprated list of allowed hosts for the server to work. The default value if only for development and production domain should be added before deployment

View Source
var AllowedIPs = "*"

AllowedIPs is a list of allowed IPs to access uAdmin interfrace in one of the following formats: - "*" = Allow all - "" = Allow none - "192.168.1.1" Only allow this IP - "192.168.1.0/24" Allow all IPs from 192.168.1.1 to 192.168.1.254 You can also create a list of the above formats using comma to separate them. For example: "192.168.1.1,192.168.1.2,192.168.0.0/24"

View Source
var BindIP = ""

BindIP is the IP the application listens to.

View Source
var BlockedIPs = ""

BlockedIPs is a list of blocked IPs from accessing uAdmin interfrace in one of the following formats: - "*" = Block all - "" = Block none - "192.168.1.1" Only block this IP - "192.168.1.0/24" Block all IPs from 192.168.1.1 to 192.168.1.254 You can also create a list of the above formats using comma to separate them. For example: "192.168.1.1,192.168.1.2,192.168.0.0/24"

View Source
var CachePermissions = true

CachePermissions allows uAdmin to store permissions data in memory

View Source
var CacheSessions = true

CacheSessions allows uAdmin to store sessions data in memory

View Source
var CacheTranslation = false

CacheTranslation allows a translation to store data in a cache memory.

View Source
var DebugDB = false

DebugDB prints all SQL statements going to DB.

View Source
var DefaultMediaPermission = os.FileMode(0644)

DefaultMediaPermission is the default permission applied to to files uploaded to the system

View Source
var DefaultProgressBarColor = "#07c"
View Source
var EmailFrom string

EmailFrom identifies where the email is coming from.

View Source
var EmailPassword string

EmailPassword sets the password of an email.

View Source
var EmailSMTPServer string

EmailSMTPServer sets the name of the SMTP Server in an email.

View Source
var EmailSMTPServerPort int

EmailSMTPServerPort sets the port number of an SMTP Server in an email.

View Source
var EmailUsername string

EmailUsername sets the username of an email.

View Source
var ErrorHandleFunc func(int, string, string)

ErrorHandleFunc is a function that will be called everytime Trail is called. It receives one parameter for error level, one for error message and one for runtime stack trace

View Source
var FavIcon = "/static/uadmin/favicon.ico"

FavIcon is the fav icon that shows on uAdmin UI

View Source
var HTTPLogFormat = "%a %>s %B %U %D"

HTTPLogFormat is the format used to log HTTP access %a: Client IP address %{remote}p: Client port %A: Server hostname/IP %{local}p: Server port %U: Path %c: All coockies %{NAME}c: Cookie named 'NAME' %{GET}f: GET request parameters %{POST}f: POST request parameters %B: Response length %>s: Response code %D: Time taken in microseconds %T: Time taken in seconds %I: Request length

View Source
var HandlersRegistered = false
View Source
var LangMapCache = map[string][]byte{}

langMapCache is a computer memory used for storage of frequently or recently used translations.

View Source
var LogAdd = true

LogAdd adds a log when a record is added.

View Source
var LogDelete = true

LogDelete adds a log when a record is deleted.

View Source
var LogEdit = true

LogEdit adds a log when a record is edited.

View Source
var LogHTTPRequests = true

LogHTTPRequests logs http requests to syslog

View Source
var LogRead = false

LogRead adds a log when a record is read.

View Source
var LogTrail = false

LogTrail stores Trail logs to syslog

View Source

Logo is the main logo that shows on uAdmin UI

View Source
var MatchAllCap = regexp.MustCompile("([a-z0-9])([A-Z])")
View Source
var MatchFirstCap = regexp.MustCompile("(.)([A-Z][a-z]+)")

Private Global Variables Regex

View Source
var MaxImageHeight = 600

MaxImageHeight sets the maximum height of an image.

View Source
var MaxImageWidth = 800

MaxImageWidth sets the maximum width of an image.

View Source
var MaxUploadFileSize = int64(25 * 1024 * 1024)

MaxUploadFileSize is the maximum upload file size in bytes.

View Source
var OTPAlgorithm = "sha1"

OTPAlgorithm is the hashing algorithm of OTP.

View Source
var OTPDigits = 6

OTPDigits is the number of digits for the OTP.

View Source
var OTPPeriod = uint(30)

OTPPeriod is the number of seconds for the OTP to change.

View Source
var OTPSkew = uint(5)

OTPSkew is the number of minutes to search around the OTP.

View Source
var OptimizeSQLQuery = false

OptimizeSQLQuery selects columns during rendering a form a list to visible fields. This means during the filtering of a form the select statement will not include any field with `hidden` tag. For list it will not select any field with `list_exclude`

View Source
var PageLength = 100

PageLength is the list view max number of records.

View Source
var PasswordAttempts = 5

PasswordAttempts is the maximum number of invalid password attempts before the IP address is blocked for some time from usig the system

View Source
var PasswordTimeout = 15

PasswordTimeout is the amount of time in minutes the IP will be blocked for after reaching the the maximum invalid password attempts

View Source
var PublicMedia = false

PublicMedia allows public access to media handler without authentication.

View Source
var RateLimit int64 = 3

RateLimit is the maximum number of requests/second for any unique IP

View Source
var RateLimitBurst int64 = 3

RateLimitBurst is the maximum number of requests for an idle user

View Source
var Registered = false
View Source
var RestrictSessionIP = false

RestrictSessionIP is to block access of a user if their IP changes from their original IP during login

View Source
var RetainMediaVersions = true

RetainMediaVersions is to allow the system to keep files uploaded even after they are changed. This allows the system to "Roll Back" to an older version of the file.

View Source
var RootURL = "/"

RootURL is where the listener is mapped to.

View Source
var SettingsSynched = false
View Source
var SiteName = "uAdmin"

SiteName is the name of the website that shows on title and dashboard.

View Source
var Theme = "default"

Theme is the name of the theme used in uAdmin.

Functions

This section is empty.

Types

type CKey

type CKey string

CKey is the standard key used in uAdmin for context keys

type ListData

type ListData struct {
	Rows  [][]interface{}
	Count int
}

Jump to

Keyboard shortcuts

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