Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { SourceURL string Event interface{} }
Event contains the event hub event as well as the event source
type EventHubConnection ¶
type EventHubConnection struct { *comm.StreamConnection // contains filtered or unexported fields }
EventHubConnection manages the connection and client stream to the event hub server
func New ¶
func New(ctx fabcontext.Client, chConfig fab.ChannelCfg, url string, opts ...options.Opt) (*EventHubConnection, error)
New returns a new Connection to the event hub.
func (*EventHubConnection) EventHubStream ¶
func (c *EventHubConnection) EventHubStream() pb.Events_ChatClient
EventHubStream returns the event hub chat client
func (*EventHubConnection) Receive ¶
func (c *EventHubConnection) Receive(eventch chan<- interface{})
Receive receives events from the event hub server
Click to show internal directories.
Click to hide internal directories.