MCPcopy Create free account

hub / github.com/StarpTech/go-web / functions

Functions67 in github.com/StarpTech/go-web

↓ 5 callersMethodPing
()
internal/store/user.go:9
↓ 4 callersFunctionNewBoom
(code, msg string, details interface{})
internal/core/errors/boom.go:37
↓ 3 callersFunctionErrorText
(code string)
internal/core/errors/boom.go:41
↓ 3 callersMethodFirst
(m *models.User)
internal/store/user.go:6
↓ 3 callersMethodGet
(string, ...interface{})
internal/i18n/i18n.go:6
↓ 3 callersMethodGetModelRegistry
GetModelRegistry returns the model registry
internal/core/server.go:62
↓ 2 callersMethodAutoMigrateAll
AutoMigrateAll runs migrations for all the registered models
internal/models/models.go:78
↓ 2 callersMethodCreate
(m *models.User)
internal/store/user.go:8
↓ 2 callersMethodFind
(m *[]models.User)
internal/store/user.go:7
↓ 2 callersMethodLoad
(layoutsDir, templatesDir string)
internal/core/template.go:38
↓ 2 callersFunctionNewServer
NewServer will create a new instance of the application
internal/core/server.go:28
↓ 2 callersMethodRegister
Register adds the values to the models registry
internal/models/models.go:52
↓ 2 callersMethodRender
(w io.Writer, name string, data interface{}, c echo.Context)
internal/core/template.go:28
↓ 1 callersFunctionAppContext
(cc *context.AppContext)
internal/core/middleware/app_context.go:8
↓ 1 callersMethodAutoDropAll
AutoDropAll drops all tables of all registered models
internal/models/models.go:85
↓ 1 callersFunctionConfigure
(lib, lang, dom string)
internal/i18n/i18n.go:15
↓ 1 callersMethodGracefulShutdown
GracefulShutdown Wait for interrupt signal to gracefully shutdown the server with a timeout of 5 seconds.
internal/core/server.go:78
↓ 1 callersFunctionNew
()
internal/i18n/i18n.go:11
↓ 1 callersFunctionNewCache
(config *config.Configuration)
internal/cache/cache.go:10
↓ 1 callersFunctionNewModel
NewModel returns a new Model without opening database connection
internal/models/models.go:22
↓ 1 callersFunctionNewRouter
(server *Server)
internal/core/router.go:13
↓ 1 callersMethodOpenWithConfig
OpenWithConfig opens database connection with the settings found in cfg
internal/models/models.go:35
↓ 1 callersMethodServeStaticFiles
ServeStaticFiles serve static files for development purpose
internal/core/server.go:72
↓ 1 callersMethodSet
(string, interface{}, time.Duration)
internal/store/cache.go:8
↓ 1 callersMethodStart
Start the http server
internal/core/server.go:67
↓ 1 callersFunctiongetTypeName
(typ reflect.Type)
internal/models/models.go:91
↓ 1 callersFunctionnewTemplateRenderer
NewTemplateRenderer creates a new setup to render layout based go templates
internal/core/template.go:21
↓ 1 callersFunctionsetup
()
internal/controller/init_test.go:40
↓ 1 callersFunctiontearDown
()
internal/controller/init_test.go:68
MethodAdd
(e Boom)
internal/core/errors/boom.go:22
FunctionApp
({ message })
web/src/app/app.js:3
FunctionApp
({ message })
web/src/global/app.js:3
MethodCreate
(m *models.User)
internal/controller/user_test.go:23
MethodCreate
(m *models.User)
internal/core/user_store.go:17
MethodFind
(m *[]models.User)
internal/controller/user_test.go:20
MethodFind
(m *[]models.User)
internal/core/user_store.go:21
MethodFirst
(m *models.User)
internal/controller/user_test.go:17
MethodFirst
(m *models.User)
internal/core/user_store.go:13
FunctionGet
(str string, vars ...interface{})
internal/i18n/i18n.go:23
MethodGet
(str string, vars ...interface{})
internal/i18n/i18n.go:19
MethodGet
(key string)
internal/core/cache_store.go:18
MethodGet
(string)
internal/store/cache.go:7
MethodGetCache
GetCache returns the current redis client
internal/core/server.go:52
MethodGetConfig
GetConfig return the current app configuration
internal/core/server.go:57
MethodGetDB
GetDB returns gorm (ORM)
internal/core/server.go:47
MethodGetHealthcheck
GetHealthcheck returns the current functional state of the application
internal/controller/healthcheck.go:18
MethodGetUser
(c echo.Context)
internal/controller/user.go:20
MethodGetUserJSON
(c echo.Context)
internal/controller/user.go:43
MethodGetUsers
(c echo.Context)
internal/controller/user-list.go:19
FunctionHTTPErrorHandler
(err error, c echo.Context)
internal/core/error_handler.go:10
FunctionHeader
({ message })
web/src/app/components/header.js:3
MethodIsOpen
IsOpen returns true if the Model has already established connection to the database
internal/models/models.go:30
FunctionLikeButton
({ id })
web/src/app/components/like-button.js:3
FunctionNewBooms
()
internal/core/errors/boom.go:26
FunctionNewConfig
(files ...string)
config/config.go:28
MethodPing
()
internal/controller/user_test.go:26
MethodPing
()
internal/core/cache_store.go:14
MethodPing
()
internal/core/user_store.go:25
MethodPing
()
internal/store/cache.go:6
MethodSet
(key string, value interface{}, exp time.Duration)
internal/core/cache_store.go:22
FunctionTestHealthcheck
(t *testing.T)
internal/controller/healthcheck_test.go:12
FunctionTestMain
(m *testing.M)
internal/controller/init_test.go:22
FunctionTestMetric
(t *testing.T)
internal/controller/metric_test.go:12
FunctionTestUnitGetUserJson
(t *testing.T)
internal/controller/user_test.go:38
FunctionTestUserPage
(t *testing.T)
internal/controller/user_test.go:30
MethodValidate
(i interface{})
internal/core/validator.go:11
Functionmain
()
main.go:14