connection

package
Version: v1.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

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

func (*EventHubConnection) Send

func (c *EventHubConnection) Send(emsg *pb.Event) error

Send sends an event to the event hub server

Source Files

Jump to

Keyboard shortcuts

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