event

package
v0.0.0-...-a355528 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	event.Publisher

	// DoList implements List via function
	DoList func(topic types.Path) (child []string, err error)
}

Plugin implements event.Plugin. It is also a publisher. Initialize the struct with (*Publisher)(nil).

func (*Plugin) List

func (t *Plugin) List(topic types.Path) (child []string, err error)

List lists the topics

type Publisher

type Publisher struct {

	// DoPublishOn sets the channel to publish on.
	DoPublishOn func(chan<- *event.Event)
}

Publisher implements the event.Publisher interface

func (*Publisher) PublishOn

func (t *Publisher) PublishOn(c chan<- *event.Event)

PublishOn sets the publish channel

Jump to

Keyboard shortcuts

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