Compare commits

..

2 Commits

Author SHA1 Message Date
Marco Kittel e879e0cf19 third commit 2025-06-08 23:22:26 +02:00
Marco Kittel 313dbdc5c9 second commit 2025-06-08 21:29:22 +02:00
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{
"Function1": func() string {
return "Executing HAL Function 1"
},
"Function2": func() string {
return "Executing HAL Function 1"
},
}
}
func (b *BusinessLogik) GetCOP() map[string]func() string {
return map[string]func() string{
"Function1": func() string {
return "Executing COP Function 1"
},
"Function2": func() string {
return "Executing COP Function 2"
},
}
}
func NewBusinessLogik() FunctionsProvider {
return &BusinessLogik{}
}