Documentation ¶
Index ¶
- func AddEventType(eventType pb.EventType) error
- func CreateBlockEvent(te *ehpb.Block) *ehpb.Event
- func CreateChaincodeEvent(te *ehpb.ChaincodeEvent) *ehpb.Event
- func CreateRejectionEvent(tx *ehpb.Transaction, errorMsg string) *ehpb.Event
- func CreateRejectionEvent2(txid string, errorMsg string) *ehpb.Event
- func Send(e *pb.Event) error
- type EventsServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlockEvent ¶
CreateBlockEvent creates a Event from a Block
func CreateChaincodeEvent ¶
func CreateChaincodeEvent(te *ehpb.ChaincodeEvent) *ehpb.Event
CreateChaincodeEvent creates a Event from a ChaincodeEvent
func CreateRejectionEvent ¶
func CreateRejectionEvent(tx *ehpb.Transaction, errorMsg string) *ehpb.Event
CreateRejectionEvent creates an Event from TxResults
func CreateRejectionEvent2 ¶
CreateRejectionEvent creates an Event from TxResults
Types ¶
type EventsServer ¶
type EventsServer struct { }
EventsServer implementation of the Peer service
func NewEventsServer ¶
func NewEventsServer(bufferSize uint, timeout int) *EventsServer
NewEventsServer returns a EventsServer
func (*EventsServer) Chat ¶
func (p *EventsServer) Chat(stream pb.Events_ChatServer) error
Chat implementation of the the Chat bidi streaming RPC function
Click to show internal directories.
Click to hide internal directories.