defines

package
v0.0.0-...-26ccd28 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP              = "tcms"
	SIGN_LOGIN       = "login"
	SIGN_LOGOUT      = "logout"
	DB_MAIN          = "tcms"
	DB_LOG_CLIENTIP  = "logclientip"
	REDIS_AUTH_TOKEN = "audit_auth_token"
	LOG_APP          = APP + "_base"
	LOG_SQL          = APP + "_debug_sql"
	VERSION          = "1.7.0"

		" _____  __  _   __  ___" + "        " + "TinyCMS Api Service " + VERSION + "\n" +
		"/_  _/,'_/ / \\,' /,' _/" + "        " + "IP:    {{{{ip}}}}" + "\n" +
		" / / / /_ / \\,' /_\\ `. " + "        " + "Port:  {{{{port}}}}" + "\n" +
		"/_/  |__//_/ /_//___,'" + "         " + "{{{{pid}}}}" + "\n" +
		"                      " + "         " + "Start: {{{{datetime}}}}" + "\n\n" +
		"Running...\n"
)
View Source
const (
	STRTRUE  = "true"
	STRFALSE = "false"
)
View Source
const (
	FORMATDATETIME   = "2006-01-02 15:04:05"
	FORMATDATE8      = "20060102"
	FORMATDATETIME14 = "20060102150405"
	FORMATDATE10     = "2006-01-02"
	FORMATDATEMMDD   = "01-02"
	FORMATTIME8      = "15:04:05"
)
View Source
const (
	YML_ADT_AUTHTOKEN_ALLOW      = "audit.auth_token.allow"
	YML_ADT_AUTHTOKEN_EXPIRE     = "audit.auth_token.expire_ms"
	YML_ADT_AUTHTOKEN_REPEAT     = "audit.auth_token.repeat"
	YML_ADT_AUTHTOKEN_JAM        = "audit.auth_token.jam_ms"
	YML_ADT_AUTHTOKEN_ALLOW_RBAC = "audit.auth_token.allow_rbac"
	YML_ADT_LOG_CLIENTIP_ALLOW   = "audit.log_clientip.allow"
	YML_DEBUG_GIN                = "debug.gin"
	YML_DEBUG_SQL                = "debug.show_sql"
	YML_DEBUG_PPROF              = "debug.pprof"
	YML_UPLOAD_MAX_SIZE          = "service.upload.max_size"
	YML_UPLOAD_SAVE_PATH         = "service.upload.save_path"
)
View Source
const (
	KEYUserInfo = "_userinfo_"
)
View Source
const (
	SCRP_TAG_LOG_CLIENTIP_TABLENAME = "{{{table_name}}}"
)

Variables

This section is empty.

Functions

func GetLogo(ip string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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