component: Rename and simplification

This commit is contained in:
Tom Wiesing 2022-10-18 09:17:25 +02:00
parent e320bb37bb
commit f7c8a43844
No known key found for this signature in database
26 changed files with 99 additions and 101 deletions

View file

@ -32,7 +32,7 @@ type Distillery struct {
Upstream Upstream
// Pool holds all the components in this pool
pool component.ComponentPool
pool component.Pool
}
// Upstream contains the configuration for accessing remote configuration.
@ -52,7 +52,7 @@ func (dis *Distillery) Context() context.Context {
// e is a convenience function to export a single component
func e[C component.Component](dis *Distillery) C {
return component.ExportComponent[C](
return component.Export[C](
&dis.pool,
dis.Still,
dis.register,
@ -60,7 +60,7 @@ func e[C component.Component](dis *Distillery) C {
}
func ea[C component.Component](dis *Distillery) []C {
return component.ExportComponents[C](
return component.ExportAll[C](
&dis.pool,
dis.Still,
dis.register,