Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
*Config
}
Application main application
func (*Application) NewServeMux ¶
func (application *Application) NewServeMux() http.Handler
NewServeMux allocates and returns a new ServeMux.
func (*Application) Use ¶
func (application *Application) Use(app MicroAppInterface)
Use mount router into micro app
type Config ¶
type Config struct { Router *chi.Mux Handlers []http.Handler AssetFS assetfs.Interface Admin *admin.Admin DB *gorm.DB }
Config application config
type MicroAppInterface ¶
type MicroAppInterface interface {
ConfigureApplication(*Application)
}
MicroAppInterface micro app interface
Click to show internal directories.
Click to hide internal directories.