Versions in this module Expand all Collapse all v1 v1.5.5 Jul 17, 2026 v1.5.4 Jul 13, 2026 v1.5.3 Jul 7, 2026 v1.5.2 Jul 7, 2026 v1.5.1 Jul 2, 2026 v1.5.0 Jun 29, 2026 v1.4.0 Jun 23, 2026 v1.3.8 Apr 9, 2026 v1.3.7 Mar 12, 2026 v1.3.6 Jan 6, 2026 Changes in this version + type APIEvent struct + App App + Body interface{} + Headers map[string]string + Method string + Path string + Request interface{} + type APIResponseEvent struct + App App + Body interface{} + Request interface{} + Response interface{} + Status int + type App interface + Bootstrap func() error + Config func() ConfigInterface + DB func() *sql.DB + DataDir func() string + IsBootstrapped func() bool + Logger func() LoggerInterface + OnAPIRequest func() *hook.Hook[*APIEvent] + OnAPIResponse func() *hook.Hook[*APIResponseEvent] + OnBootstrap func() *hook.Hook[*BootstrapEvent] + OnCategoryCreate func() *hook.Hook[*CategoryEvent] + OnCustomEvent func() *hook.Hook[*CustomEvent] + OnReadyResourceAdd func() *hook.Hook[*ReadyResourceEvent] + OnServe func() *hook.Hook[*ServeEvent] + OnTagAdd func() *hook.Hook[*TagEvent] + OnTerminate func() *hook.Hook[*TerminateEvent] + OnURLAccess func() *hook.Hook[*URLAccessEvent] + OnURLAdd func() *hook.Hook[*URLEvent] + OnURLDelete func() *hook.Hook[*URLEvent] + OnURLUpdate func() *hook.Hook[*URLEvent] + OnUserLogin func() *hook.Hook[*UserEvent] + OnUserLogout func() *hook.Hook[*UserEvent] + OnUserRegister func() *hook.Hook[*UserEvent] + Restart func() error + Router func() RouterInterface + WithURLDB func(fn func(interface{}) error) error + type BaseApp struct + func NewBaseApp() *BaseApp + func (app *BaseApp) Bootstrap() error + func (app *BaseApp) Config() ConfigInterface + func (app *BaseApp) DB() *sql.DB + func (app *BaseApp) DataDir() string + func (app *BaseApp) IsBootstrapped() bool + func (app *BaseApp) Logger() LoggerInterface + func (app *BaseApp) OnAPIRequest() *hook.Hook[*APIEvent] + func (app *BaseApp) OnAPIResponse() *hook.Hook[*APIResponseEvent] + func (app *BaseApp) OnBootstrap() *hook.Hook[*BootstrapEvent] + func (app *BaseApp) OnCategoryCreate() *hook.Hook[*CategoryEvent] + func (app *BaseApp) OnCustomEvent() *hook.Hook[*CustomEvent] + func (app *BaseApp) OnReadyResourceAdd() *hook.Hook[*ReadyResourceEvent] + func (app *BaseApp) OnServe() *hook.Hook[*ServeEvent] + func (app *BaseApp) OnTagAdd() *hook.Hook[*TagEvent] + func (app *BaseApp) OnTerminate() *hook.Hook[*TerminateEvent] + func (app *BaseApp) OnURLAccess() *hook.Hook[*URLAccessEvent] + func (app *BaseApp) OnURLAdd() *hook.Hook[*URLEvent] + func (app *BaseApp) OnURLDelete() *hook.Hook[*URLEvent] + func (app *BaseApp) OnURLUpdate() *hook.Hook[*URLEvent] + func (app *BaseApp) OnUserLogin() *hook.Hook[*UserEvent] + func (app *BaseApp) OnUserLogout() *hook.Hook[*UserEvent] + func (app *BaseApp) OnUserRegister() *hook.Hook[*UserEvent] + func (app *BaseApp) Restart() error + func (app *BaseApp) Router() RouterInterface + func (app *BaseApp) SetConfig(config ConfigInterface) + func (app *BaseApp) SetDB(db *sql.DB) + func (app *BaseApp) SetDataDir(dir string) + func (app *BaseApp) SetLogger(logger LoggerInterface) + func (app *BaseApp) SetRouter(router RouterInterface) + func (app *BaseApp) TriggerCustomEvent(name string, data map[string]interface{}) error + func (app *BaseApp) TriggerReadyResourceAdd(readyResource *entity.ReadyResource, data map[string]interface{}) error + func (app *BaseApp) TriggerURLAccess(url *entity.Resource, accessLog interface{}, request, response interface{}) error + func (app *BaseApp) TriggerURLAdd(url *entity.Resource, data map[string]interface{}) error + func (app *BaseApp) TriggerUserLogin(user *entity.User, data map[string]interface{}) error + func (app *BaseApp) WithURLDB(fn func(interface{}) error) error + type BootstrapEvent struct + App App + type CategoryEvent struct + App App + Category *entity.Category + type ConfigInterface interface + Get func(key string) interface{} + GetBool func(key string) bool + GetInt func(key string) int + GetString func(key string) string + Set func(key string, value interface{}) + type CustomEvent struct + App App + Data map[string]interface{} + Name string + type LoggerInterface interface + Debug func(msg string, args ...interface{}) + Error func(msg string, args ...interface{}) + Fatal func(msg string, args ...interface{}) + Info func(msg string, args ...interface{}) + Warn func(msg string, args ...interface{}) + type ReadyResourceEvent struct + App App + Data map[string]interface{} + ReadyResource *entity.ReadyResource + type RouterInterface interface + DELETE func(path string, handler interface{}) + GET func(path string, handler interface{}) + Group func(path string) RouterInterface + PATCH func(path string, handler interface{}) + POST func(path string, handler interface{}) + PUT func(path string, handler interface{}) + Use func(middleware interface{}) + type ServeEvent struct + App App + Router RouterInterface + type TagEvent struct + App App + Tag *entity.Tag + URL *entity.Resource + type TerminateEvent struct + App App + type URLAccessEvent struct + AccessLog interface{} + App App + Request interface{} + Response interface{} + URL *entity.Resource + type URLEvent struct + App App + Data map[string]interface{} + URL *entity.Resource + type UserEvent struct + App App + Data map[string]interface{} + User *entity.User