mirror of
https://github.com/cf-sonr/motr.git
synced 2026-01-12 11:09:13 +00:00
22 lines
379 B
Go
22 lines
379 B
Go
package config
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/onsonr/motr/x/identity"
|
|
"github.com/onsonr/motr/x/portfolio"
|
|
"github.com/onsonr/motr/x/user"
|
|
)
|
|
|
|
type DBConnection struct {
|
|
DB *sql.DB
|
|
Identity identity.Model
|
|
Portfolio portfolio.Model
|
|
User user.Model
|
|
}
|
|
|
|
type RuntimeContext interface {
|
|
GetMotrConfig() *MotrConfig
|
|
GetDatabaseConnection() *DBConnection
|
|
}
|