Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Name string
Config *config.Config
DB *gorm.DB
Router *mux.Router
// contains filtered or unexported fields
}
App structure for tenant microservice
func New ¶
func New(appName string, appConfigOverride map[string]string, appLog *log.Logger, appDB *gorm.DB, appEventDispatcher events.EventDispatcher) *App
New creates a new microApp
func (*App) DispatchEvent ¶
DispatchEvent delegates to eventDispatcher.
func (*App) Initialize ¶
func (app *App) Initialize(routeSpecifiers []RouteSpecifier)
Initialize initializes properties of the app
type RouteSpecifier ¶
RouteSpecifier should be implemented by the class that sets routes for the API endpoints
Click to show internal directories.
Click to hide internal directories.