producer

package
v0.0.0-...-02a123c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEventType

func AddEventType(eventType pb.EventType) error

AddEventType supported event

func CreateBlockEvent

func CreateBlockEvent(te *ehpb.Block) *ehpb.Event

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 Send

func Send(e *pb.Event) error

Send sends the event to interested consumers

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL