Documentation ¶
Index ¶
- func WriteData(data string, code int, w http.ResponseWriter) int
- type App
- func (app *App) Delete(path string, f routeHandler)
- func (app *App) Get(path string, f routeHandler)
- func (app *App) Handle(h hdlr, verifyRequest bool) func(w http.ResponseWriter, r *http.Request)
- func (app *App) Initialize(dbConfig *config.DBConfig, redisConfig *config.RedisConfig, ...)
- func (app *App) Post(path string, f routeHandler)
- func (app *App) Run(port string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App - API config for DB, Mux Router and CORS
func (*App) Initialize ¶
func (app *App) Initialize(dbConfig *config.DBConfig, redisConfig *config.RedisConfig, adminConfig *model.User)
Initialize - Server initialization Database, CORS and the admin settings are initialized
Click to show internal directories.
Click to hide internal directories.