Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dionyself/golang-cms
/ functions
Functions
84 in github.com/dionyself/golang-cms
⨍
Functions
84
◇
Types & classes
32
↓ 11 callers
Method
ConfigPage
ConfigPage receives template name and makes basic config to render it
controllers/base.go:26
↓ 8 callers
Method
Set
Set any value to cache, expiration time in seconds
core/lib/cache/cache.go:117
↓ 5 callers
Method
GetDB
GetDB set the orm connector into our controller if repication activated we use slave to Slave
controllers/base.go:72
↓ 4 callers
Method
Get
Get main page
controllers/index.go:8
↓ 4 callers
Method
GetString
GetString bring string from cache, expiration time in seconds
core/lib/cache/cache.go:74
↓ 3 callers
Method
Validate
Validate ImageForm data
models/validators.go:60
↓ 1 callers
Function
Contains
(stringSlice []string, stringToSearch string)
utils/base.go:29
↓ 1 callers
Function
DetectMimeType
(file io.Reader)
utils/base.go:55
↓ 1 callers
Function
GetActiveTheme
GetActiveTheme gets active theme (cached)
core/template/path.go:22
↓ 1 callers
Method
GetBlockType
()
core/block/base.go:18
↓ 1 callers
Method
GetBlocks
()
controllers/base.go:44
↓ 1 callers
Method
GetCache
GetCache set the cache connector into our controller
controllers/base.go:66
↓ 1 callers
Method
GetContent
()
core/block/base.go:16
↓ 1 callers
Method
GetMap
GetMap bring string from cache, expiration time in seconds
core/lib/cache/cache.go:26
↓ 1 callers
Method
GetModuleMenu
GetModuleMenu retrieves menu
controllers/base.go:84
↓ 1 callers
Method
GetPermissions
GetPermissions get user permissions data
models/user.go:37
↓ 1 callers
Method
GetPosition
()
core/block/base.go:17
↓ 1 callers
Method
GetStringList
(cacheKey string, expirationTime int64)
core/lib/cache/cache.go:69
↓ 1 callers
Method
GetTemplatePath
()
core/block/base.go:15
↓ 1 callers
Function
HasUser
HasUser checks if user exists in db
controllers/auth.go:96
↓ 1 callers
Method
Init
IsContentCacheable() bool GetConfig() models.BlockConfig Register()
core/block/base.go:22
↓ 1 callers
Function
InsertDemoData
InsertDemoData insert demo data in database if ReCreateDatabase is true
core/lib/db/data.go:7
↓ 1 callers
Method
IsActive
SetConfig() bool Activate() Deactivate()
core/block/base.go:27
↓ 1 callers
Method
Load
(*models.Block)
core/block/base.go:23
↓ 1 callers
Function
LoadTemplates
LoadTemplates this usually runs on startup
core/template/path.go:146
↓ 1 callers
Function
PBKDF2
PBKDF2 http://code.google.com/p/go/source/browse/pbkdf2/pbkdf2.go?repo=crypto
utils/passwd.go:29
↓ 1 callers
Function
SaveTemplates
SaveTemplates save loaded templates into db, thi usually runs on startup
core/template/path.go:85
↓ 1 callers
Function
VerifyPassword
VerifyPassword checks if pwd is correct
controllers/auth.go:108
↓ 1 callers
Function
VerifyUser
VerifyUser virifies user credentials
controllers/auth.go:116
↓ 1 callers
Function
getImageHash
(img image.Image)
utils/image.go:68
↓ 1 callers
Function
getLocalIPs
()
utils/image.go:140
↓ 1 callers
Function
initBlock
initBlock use this to initialize your block
core/block/base.go:53
↓ 1 callers
Method
populateProfileViewData
populateProfileViewData Displays profile by id
controllers/profile.go:30
↓ 1 callers
Function
syncronize
(every time.Duration)
utils/image.go:81
↓ 1 callers
Method
uploadAndRegisterIMG
(sessionKey string, img io.Reader, fileHeader *multipart.FileHeader, form *models.ImageForm)
controllers/ajax.go:37
↓ 1 callers
Function
uploadToRemote
()
utils/image.go:76
Function
ContainsKey
(thisMap interface{}, key string)
utils/base.go:38
Function
CropImage
(img io.Reader, imgMimeType string, target string, anchorCoord [2]int)
utils/image.go:24
Function
EncodePassword
EncodePassword ...
utils/passwd.go:23
Method
Get
Get Displays Article by id
controllers/article.go:16
Method
GetActiveAds
()
controllers/base.go:60
Function
GetActiveBlocks
GetBlock get a list of active block (by name)
core/block/base.go:37
Method
GetBlockType
GetBlockType yup this is hardcoded an this the way to do it
core/block/html.go:37
Method
GetContent
GetContent gets contents
controllers/base.go:90
Method
GetContent
()
core/block/html.go:41
Function
GetDefaultMenu
GetDefaultMenu get menu
core/defaults/menu.go:9
Function
GetEvents
GetEvents returns all events after lastReceived.
models/base.go:36
Method
GetImageUploadStatus
()
controllers/ajax.go:63
Method
GetPosition
()
core/block/html.go:44
Function
GetRandomString
GetRandomString ...
utils/passwd.go:12
Method
GetTemplatePath
this couldbe reimplemented support mutiple themes/templates/style by now hardoding
core/block/html.go:54
Method
Init
this maybe moved to single funct func (block htmlBlock) Init(siteData map[string]string, config map[string]string, content map[string]string) {
core/block/html.go:29
Method
IsActive
()
core/block/html.go:48
Method
Load
(blockModel *models.Block)
core/block/html.go:58
Method
Login
Login authenticates the user
controllers/auth.go:27
Method
LoginView
LoginView ...
controllers/auth.go:22
Method
Logout
Logout ...
controllers/auth.go:47
Method
MainView
MainView ...
controllers/panel.go:9
Function
MergeMaps
(map1 map[string]string, map2 map[string]string)
utils/base.go:48
Function
NewArchive
NewArchive saves new event to archive list.
models/base.go:28
Method
Post
Post create/update article
controllers/article.go:38
Method
PostImage
generic Ajax
controllers/ajax.go:19
Method
Register
Register the user
controllers/auth.go:58
Method
RegisterView
RegisterView displays register form
controllers/auth.go:53
Function
SessionInit
SessionInit ...
utils/session.go:8
Function
SetActiveTheme
SetActiveTheme ...
core/template/path.go:46
Function
TestMain
TestMain is a sample to run an endpoint test
tests/guestEndpoints_test.go:25
Function
UploadImage
(target string, img image.Image)
utils/image.go:50
Method
UserPanelView
UserPanelView Display user's homepage
controllers/profile.go:15
Method
Validate
Validate RegisterForm data
models/validators.go:10
Method
Validate
Validate ArticleForm data
models/validators.go:35
Function
init
()
main.go:14
Function
init
()
utils/base.go:64
Function
init
()
utils/image.go:161
Function
init
()
core/defaults/modules/news.go:13
Function
init
()
core/lib/cache/cache.go:138
Function
init
()
core/lib/db/db.go:22
Function
init
()
core/template/path.go:162
Function
init
()
core/block/html.go:68
Function
init
()
core/block/base.go:65
Function
init
()
tests/guestEndpoints_test.go:17
Function
init
registering all modules
models/user.go:42
Function
init
()
routers/router.go:9
Function
main
()
main.go:19