fasten-onprem/backend/pkg/event_bus/noop_event_bus.go

13 lines
553 B
Go
Raw Normal View History

package event_bus
import "github.com/fastenhealth/fasten-onprem/backend/pkg/models"
type noopEventBus struct {
}
func (bus *noopEventBus) PublishMessage(eventMsg models.EventInterface) error { return nil }
func (bus *noopEventBus) AddListener(listener *EventBusListener) {}
func (bus *noopEventBus) RemoveListener(listener *EventBusListener) {}
func (bus *noopEventBus) TotalRooms() int { return 0 }
func (bus *noopEventBus) TotalListenersByRoom(room string) int { return 0 }