event

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterConsumer

func RegisterConsumer(cb Consumer)

RegisterConsumer register consumer

func Send

func Send(msg Message) error

Send send message

Types

type BaseMsg

type BaseMsg struct {
	Info string
}

BaseMsg base message

func (*BaseMsg) String

func (m *BaseMsg) String() string

type Consumer

type Consumer func(Message) error

Consumer message Consumer

type Message

type Message interface {
	String() string
}

Message event messages.

Jump to

Keyboard shortcuts

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