✨ encapsulate object storage service operations
This commit is contained in:
13
common/storage/events/handlers.go
Normal file
13
common/storage/events/handlers.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package events
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func LogHandler(event Event) {
|
||||
fmt.Printf("[LOG] Event: %s, Data: %+v\n", event.Name, event.Data)
|
||||
}
|
||||
|
||||
func NotifyHandler(event Event) {
|
||||
fmt.Printf("[NOTIFY] User notified about event: %s\n", event.Name)
|
||||
}
|
Reference in New Issue
Block a user