mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-07 19:02:50 +08:00
10 lines
249 B
Go
10 lines
249 B
Go
package eventbus
|
|
|
|
// BusBridge is a minimal interface for a websocket-like JSON connection.
|
|
// Implemented by e.g. *websocket.Conn from gorilla via wrappers:
|
|
type BusBridge interface {
|
|
ReadJSON(v any) error
|
|
WriteJSON(v any) error
|
|
Close() error
|
|
}
|