Documentation ¶
Index ¶
- func CreateBlockEvent(te *common.Block) *pb.Event
- func CreateBlockEvents(block *common.Block) (bevent *pb.Event, fbevent *pb.Event, channelID string, err error)
- func CreateFilteredBlockEvent(te *pb.FilteredBlock) *pb.Event
- func Send(e *pb.Event) error
- type EventsServer
- type EventsServerConfig
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlockEvent ¶
CreateBlockEvent creates a Event from a Block
func CreateBlockEvents ¶ added in v1.1.0
func CreateBlockEvents(block *common.Block) (bevent *pb.Event, fbevent *pb.Event, channelID string, err error)
CreateBlockEvents creates block events for a block. It removes the RW set and creates a block event and a filtered block event. Sending the events is the responsibility of the code that calls this function.
func CreateFilteredBlockEvent ¶ added in v1.1.0
func CreateFilteredBlockEvent(te *pb.FilteredBlock) *pb.Event
CreateFilteredBlockEvent creates a Event from a FilteredBlock
Types ¶
type EventsServer ¶
type EventsServer struct {
// contains filtered or unexported fields
}
EventsServer implementation of the Peer service
func NewEventsServer ¶
func NewEventsServer(config *EventsServerConfig) *EventsServer
NewEventsServer returns an EventsServer
func (*EventsServer) Chat ¶
func (e *EventsServer) Chat(stream pb.Events_ChatServer) error
Click to show internal directories.
Click to hide internal directories.