prysm-pulse/shared/p2p/interfaces.go

15 lines
310 B
Go
Raw Normal View History

package p2p
import (
"context"
"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(context.Context, proto.Message)
}