RelayPublisher is implemented by Redis relay backends that can publish a caller-supplied event id for local/Redis loopback deduplication.
| 507 | // RelayPublisher is implemented by Redis relay backends that can publish a |
| 508 | // caller-supplied event id for local/Redis loopback deduplication. |
| 509 | type RelayPublisher interface { |
| 510 | PublishWithID(scopeType, scopeID, exclude string, frame []byte, id string) error |
| 511 | } |
| 512 | |
| 513 | func NewDualWriteBroadcaster(local *Hub, relay RelayPublisher) *DualWriteBroadcaster { |
| 514 | return newDualWriteBroadcaster(local, relay) |
no outgoing calls
no test coverage detected