Added multiple services to be trigered from main API
This commit is contained in:
11
services/contact/contact_service.go
Normal file
11
services/contact/contact_service.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package contact
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func ContactService(ch chan string) {
|
||||
for msg := range ch {
|
||||
fmt.Println("Contact Service: ", msg)
|
||||
}
|
||||
}
|
||||
11
services/erp/erp_service.go
Normal file
11
services/erp/erp_service.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package erp
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func ERPService(ch chan string) {
|
||||
for msg := range ch {
|
||||
fmt.Println("ERP Service: ", msg)
|
||||
}
|
||||
}
|
||||
11
services/messaging/messaging_service.go
Normal file
11
services/messaging/messaging_service.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package messaging
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func MessagingService(ch chan string) {
|
||||
for msg := range ch {
|
||||
fmt.Println("Messaging Service: ", msg)
|
||||
}
|
||||
}
|
||||
12
services/sensor/sensor_service.go
Normal file
12
services/sensor/sensor_service.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package sensor
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func SensorService(ch chan string) {
|
||||
for msg := range ch {
|
||||
fmt.Println("Sensor Service: ", msg)
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user