Documentation ¶
Index ¶
- func GetDefaultSystemConfig() *config.SystemConfig
- func Init(conf *config.SystemConfig) error
- func IsProduction() bool
- func Run()
- func Shutdown() error
- type App
- func (a *App) Delete(path string, f func(w http.ResponseWriter, r *http.Request))
- func (a *App) Get(path string, f func(w http.ResponseWriter, r *http.Request))
- func (a *App) Initialize(config config.DBConfig) error
- func (a *App) Post(path string, f func(w http.ResponseWriter, r *http.Request))
- func (a *App) Put(path string, f func(w http.ResponseWriter, r *http.Request))
- func (a *App) Run(host string)
- func (a *App) Shutdown() error
- type RequestHandlerFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultSystemConfig ¶
func GetDefaultSystemConfig() *config.SystemConfig
func Init ¶
func Init(conf *config.SystemConfig) error
func IsProduction ¶
func IsProduction() bool
Types ¶
type App ¶
App has router and db instances
func (*App) Initialize ¶
Initialize initializes the app with predefined configuration
type RequestHandlerFunction ¶
Click to show internal directories.
Click to hide internal directories.