Move status into a seperate package
This commit is contained in:
parent
4752c0fcec
commit
3fada6ad38
23 changed files with 220 additions and 197 deletions
14
internal/dis/component/fetcher.go
Normal file
14
internal/dis/component/fetcher.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package component
|
||||
|
||||
import "github.com/FAU-CDI/wisski-distillery/internal/status"
|
||||
|
||||
type DistilleryFetcher interface {
|
||||
Component
|
||||
|
||||
// Fetch fetches information from this component and writes it into target.
|
||||
// Distinct DistilleryFetchers must write into distinct fields.
|
||||
Fetch(flags FetcherFlags, target *status.Distillery) error
|
||||
}
|
||||
|
||||
// FetcherFlags describes options for a DistilleryFetcher
|
||||
type FetcherFlags struct{}
|
||||
Loading…
Add table
Add a link
Reference in a new issue