Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppContext ¶
func NewAppContext(w http.ResponseWriter, r *http.Request, app *App) *appctx.AppContext
Types ¶
type App ¶
type App struct { Router *mux.Router DB *gorm.DB MediaService *media.MediaServise LogService logger.LoggerInterface NotivyService notifications.NotificationsInterface AppLogDiff applog.AppLogDiffInterface }
App has router and db instances
func NewApp ¶
func NewApp(db *gorm.DB, notivyService notifications.NotificationsInterface) *App
Initialize initializes the app with predefined configuration
func (*App) RegisterGenericMapView ¶
func (app *App) RegisterGenericMapView(path string, baseRout *mux.Router, viewsAPI map[views.ViewSetMethod]func(*appctx.AppContext))
func (*App) RegisterGenericView ¶
func (*App) RegisterHundler ¶
Click to show internal directories.
Click to hide internal directories.