events

package
v0.6.29 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(topic string, message *Message)

func Start added in v0.6.11

func Start()

func StartFileWatch added in v0.6.11

func StartFileWatch()

only do this once

func Stop added in v0.6.11

func Stop()

func StopFileWatch added in v0.6.11

func StopFileWatch()

Types

type Handle added in v0.6.11

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

func Listen

func Listen(topic string, listener Listener) *Handle

func (*Handle) Close added in v0.6.11

func (handle *Handle) Close()

type Listener

type Listener func(message *Message)

type Message

type Message map[string]interface{}

Jump to

Keyboard shortcuts

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