Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StarpTech/go-web
/ functions
Functions
67 in github.com/StarpTech/go-web
⨍
Functions
67
◇
Types & classes
22
↓ 5 callers
Method
Ping
()
internal/store/user.go:9
↓ 4 callers
Function
NewBoom
(code, msg string, details interface{})
internal/core/errors/boom.go:37
↓ 3 callers
Function
ErrorText
(code string)
internal/core/errors/boom.go:41
↓ 3 callers
Method
First
(m *models.User)
internal/store/user.go:6
↓ 3 callers
Method
Get
(string, ...interface{})
internal/i18n/i18n.go:6
↓ 3 callers
Method
GetModelRegistry
GetModelRegistry returns the model registry
internal/core/server.go:62
↓ 2 callers
Method
AutoMigrateAll
AutoMigrateAll runs migrations for all the registered models
internal/models/models.go:78
↓ 2 callers
Method
Create
(m *models.User)
internal/store/user.go:8
↓ 2 callers
Method
Find
(m *[]models.User)
internal/store/user.go:7
↓ 2 callers
Method
Load
(layoutsDir, templatesDir string)
internal/core/template.go:38
↓ 2 callers
Function
NewServer
NewServer will create a new instance of the application
internal/core/server.go:28
↓ 2 callers
Method
Register
Register adds the values to the models registry
internal/models/models.go:52
↓ 2 callers
Method
Render
(w io.Writer, name string, data interface{}, c echo.Context)
internal/core/template.go:28
↓ 1 callers
Function
AppContext
(cc *context.AppContext)
internal/core/middleware/app_context.go:8
↓ 1 callers
Method
AutoDropAll
AutoDropAll drops all tables of all registered models
internal/models/models.go:85
↓ 1 callers
Function
Configure
(lib, lang, dom string)
internal/i18n/i18n.go:15
↓ 1 callers
Method
GracefulShutdown
GracefulShutdown Wait for interrupt signal to gracefully shutdown the server with a timeout of 5 seconds.
internal/core/server.go:78
↓ 1 callers
Function
New
()
internal/i18n/i18n.go:11
↓ 1 callers
Function
NewCache
(config *config.Configuration)
internal/cache/cache.go:10
↓ 1 callers
Function
NewModel
NewModel returns a new Model without opening database connection
internal/models/models.go:22
↓ 1 callers
Function
NewRouter
(server *Server)
internal/core/router.go:13
↓ 1 callers
Method
OpenWithConfig
OpenWithConfig opens database connection with the settings found in cfg
internal/models/models.go:35
↓ 1 callers
Method
ServeStaticFiles
ServeStaticFiles serve static files for development purpose
internal/core/server.go:72
↓ 1 callers
Method
Set
(string, interface{}, time.Duration)
internal/store/cache.go:8
↓ 1 callers
Method
Start
Start the http server
internal/core/server.go:67
↓ 1 callers
Function
getTypeName
(typ reflect.Type)
internal/models/models.go:91
↓ 1 callers
Function
newTemplateRenderer
NewTemplateRenderer creates a new setup to render layout based go templates
internal/core/template.go:21
↓ 1 callers
Function
setup
()
internal/controller/init_test.go:40
↓ 1 callers
Function
tearDown
()
internal/controller/init_test.go:68
Method
Add
(e Boom)
internal/core/errors/boom.go:22
Function
App
({ message })
web/src/app/app.js:3
Function
App
({ message })
web/src/global/app.js:3
Method
Create
(m *models.User)
internal/controller/user_test.go:23
Method
Create
(m *models.User)
internal/core/user_store.go:17
Method
Find
(m *[]models.User)
internal/controller/user_test.go:20
Method
Find
(m *[]models.User)
internal/core/user_store.go:21
Method
First
(m *models.User)
internal/controller/user_test.go:17
Method
First
(m *models.User)
internal/core/user_store.go:13
Function
Get
(str string, vars ...interface{})
internal/i18n/i18n.go:23
Method
Get
(str string, vars ...interface{})
internal/i18n/i18n.go:19
Method
Get
(key string)
internal/core/cache_store.go:18
Method
Get
(string)
internal/store/cache.go:7
Method
GetCache
GetCache returns the current redis client
internal/core/server.go:52
Method
GetConfig
GetConfig return the current app configuration
internal/core/server.go:57
Method
GetDB
GetDB returns gorm (ORM)
internal/core/server.go:47
Method
GetHealthcheck
GetHealthcheck returns the current functional state of the application
internal/controller/healthcheck.go:18
Method
GetUser
(c echo.Context)
internal/controller/user.go:20
Method
GetUserJSON
(c echo.Context)
internal/controller/user.go:43
Method
GetUsers
(c echo.Context)
internal/controller/user-list.go:19
Function
HTTPErrorHandler
(err error, c echo.Context)
internal/core/error_handler.go:10
Function
Header
({ message })
web/src/app/components/header.js:3
Method
IsOpen
IsOpen returns true if the Model has already established connection to the database
internal/models/models.go:30
Function
LikeButton
({ id })
web/src/app/components/like-button.js:3
Function
NewBooms
()
internal/core/errors/boom.go:26
Function
NewConfig
(files ...string)
config/config.go:28
Method
Ping
()
internal/controller/user_test.go:26
Method
Ping
()
internal/core/cache_store.go:14
Method
Ping
()
internal/core/user_store.go:25
Method
Ping
()
internal/store/cache.go:6
Method
Set
(key string, value interface{}, exp time.Duration)
internal/core/cache_store.go:22
Function
TestHealthcheck
(t *testing.T)
internal/controller/healthcheck_test.go:12
Function
TestMain
(m *testing.M)
internal/controller/init_test.go:22
Function
TestMetric
(t *testing.T)
internal/controller/metric_test.go:12
Function
TestUnitGetUserJson
(t *testing.T)
internal/controller/user_test.go:38
Function
TestUserPage
(t *testing.T)
internal/controller/user_test.go:30
Method
Validate
(i interface{})
internal/core/validator.go:11
Function
main
()
main.go:14