Added multiple services to be trigered from main API

This commit is contained in:
Nedim
2023-09-11 12:01:30 +02:00
parent f52d8d9a30
commit 67615d76dd
5 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package contact
import (
"fmt"
)
func ContactService(ch chan string) {
for msg := range ch {
fmt.Println("Contact Service: ", msg)
}
}

View File

@@ -0,0 +1,11 @@
package erp
import (
"fmt"
)
func ERPService(ch chan string) {
for msg := range ch {
fmt.Println("ERP Service: ", msg)
}
}

View File

@@ -0,0 +1,11 @@
package messaging
import (
"fmt"
)
func MessagingService(ch chan string) {
for msg := range ch {
fmt.Println("Messaging Service: ", msg)
}
}

View File

@@ -0,0 +1,12 @@
package sensor
import (
"fmt"
)
func SensorService(ch chan string) {
for msg := range ch {
fmt.Println("Sensor Service: ", msg)
}
}