dispatcher

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	// contains filtered or unexported fields
}

Dispatcher is a Gossip message dispatcher

func (*Dispatcher) Dispatch

func (s *Dispatcher) Dispatch(msg protoext.ReceivedMessage) bool

Dispatch handles the message and returns true if the message was handled; false if the message is unrecognized

type Provider added in v0.1.1

type Provider struct {
	// contains filtered or unexported fields
}

Provider is a gossip dispatcher provider

func NewProvider added in v0.1.1

func NewProvider() *Provider

NewProvider returns a new gossip message dispatcher provider

func (*Provider) ForChannel added in v0.1.1

func (p *Provider) ForChannel(channelID string, dataStore storeapi.Store) *Dispatcher

ForChannel returns a new dispatcher for the given channel

func (*Provider) Initialize added in v0.1.1

func (p *Provider) Initialize(gossipProvider collcommon.GossipProvider, ccProvider collcommon.CollectionConfigProvider, handlerProvider appDataHandlerProvider) *Provider

Initialize is called at startup by the resource manager

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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