Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct { clientdisp.Dispatcher // contains filtered or unexported fields }
Dispatcher is responsible for handling all events, including connection and registration events originating from the client, and events originating from the event hub server. All events are processed in a single Go routine in order to avoid any race conditions. This avoids the need for synchronization.
func New ¶
func New(context fabcontext.Client, chConfig fab.ChannelCfg, connectionProvider api.ConnectionProvider, opts ...options.Opt) *Dispatcher
New creates a new event hub dispatcher
type RegisterInterestsEvent ¶
RegisterInterestsEvent registers interests with the event hub
func NewRegisterInterestsEvent ¶
func NewRegisterInterestsEvent(interests []*pb.Interest, errch chan<- error) *RegisterInterestsEvent
NewRegisterInterestsEvent returns a RegisterInterests event
type UnregisterInterestsEvent ¶
UnregisterInterestsEvent unregisters interests with the event hub
func NewUnregisterInterestsEvent ¶
func NewUnregisterInterestsEvent(interests []*pb.Interest, errch chan<- error) *UnregisterInterestsEvent
NewUnregisterInterestsEvent returns an UnregisterInterests event
Click to show internal directories.
Click to hide internal directories.