components/resolver: Use database instead of file approach

This commit is contained in:
Tom Wiesing 2022-10-05 16:35:47 +02:00
parent f6b38f055d
commit 32107265d4
No known key found for this signature in database
10 changed files with 165 additions and 103 deletions

View file

@ -12,7 +12,6 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/component/ssh"
"github.com/FAU-CDI/wisski-distillery/internal/component/triplestore"
"github.com/FAU-CDI/wisski-distillery/internal/component/web"
"github.com/FAU-CDI/wisski-distillery/internal/core"
)
// register returns all components of the distillery
@ -43,13 +42,9 @@ func (dis *Distillery) register(context *component.PoolContext) []component.Comp
ra[*snapshots.Pathbuilders](dis, context),
// Control server
r(dis, context, func(control *control.Control) {
control.ResolverFile = core.PrefixConfig
}),
ra[*control.Control](dis, context),
ra[*control.SelfHandler](dis, context),
r(dis, context, func(resolver *resolver.Resolver) {
resolver.ResolverFile = core.PrefixConfig
}),
ra[*resolver.Resolver](dis, context),
ra[*control.Info](dis, context),
}
}