dispatcher

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoChannel

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

GoChannel dispatcher by go channel.

func NewGoChannel

func NewGoChannel(pool evbundler.WorkerPool) *GoChannel

NewGoChannel initialize GoChannel.

func (*GoChannel) Dispatch

func (d *GoChannel) Dispatch(ctx context.Context, evCh chan evbundler.Event) error

Dispatch dispatches events from a event channel.

type RoundRobin

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

func (*RoundRobin) Dispatch

func (d *RoundRobin) Dispatch(ctx context.Context, evCh chan evbundler.Event) error

Jump to

Keyboard shortcuts

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