second commit

This commit is contained in:
Marco Kittel 2025-06-08 21:29:22 +02:00
parent c1867d63d0
commit 313dbdc5c9
1 changed files with 33 additions and 0 deletions

33
intern/plugin.go Normal file
View File

@ -0,0 +1,33 @@
package intern
type FunctionsProvider interface {
GetHAL() map[string]func() string
GetCOP() map[string]func() string
}
type BusinessLogik struct{}
func (b *BusinessLogik) GetHAL() map[string]func() string {
return map[string]func() string{
"halFunction1": func() string {
return "Executing HAL Function 1"
},
"halFunction2": func() string {
return "Executing HAL Function 1"
},
}
}
func (b *BusinessLogik) GetCOP() map[string]func() string {
return map[string]func() string{
"copFunction1": func() string {
return "Executing COP Function 1"
},
"copFunction2": func() string {
return "Executing COP Function 2"
},
}
}
func NewBusinessLogik() FunctionsProvider {
return &BusinessLogik{}
}