Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHubConnection ¶
type EventHubConnection struct {
comm.GRPCConnection
}
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.