move initial konstructor structs from main.go to init.go
This commit is contained in:
@@ -2,8 +2,6 @@ package konstructor
|
||||
|
||||
type Konstructor struct {
|
||||
Domain DomainInterface
|
||||
KContext *KContext
|
||||
Config *Config
|
||||
EngineWrapper EngineWrapperInterface
|
||||
}
|
||||
|
||||
@@ -11,8 +9,8 @@ func (k Konstructor) Init() {
|
||||
k.Domain.Init()
|
||||
k.EngineWrapper.Init(EngineArgs{
|
||||
Domain: k.Domain,
|
||||
KContext: k.KContext,
|
||||
Config: k.Config,
|
||||
KContext: k.Domain.GetInitialKContext(),
|
||||
Config: k.Domain.GetInitialConfig(),
|
||||
})
|
||||
k.EngineWrapper.Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user