mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 10:12:19 +00:00
13 lines
281 B
Go
13 lines
281 B
Go
|
package p2p
|
||
|
|
||
|
import (
|
||
|
"github.com/gogo/protobuf/proto"
|
||
|
)
|
||
|
|
||
|
// Broadcaster represents a subset of the p2p.Server. This interface is useful
|
||
|
// for testing or when the calling code only needs access to the broadcast
|
||
|
// method.
|
||
|
type Broadcaster interface {
|
||
|
Broadcast(proto.Message)
|
||
|
}
|