types

package
v0.0.0-...-abf0de2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Topic EventTopic
	Time  time.Time
	Meta  EventMeta
	Stack string
}

Event evt

type EventMeta

type EventMeta map[MetaKey]interface{}

EventMeta event meta

type EventTopic

type EventTopic string

EventTopic topic of event

func (EventTopic) String

func (h EventTopic) String() string

type HandlerID

type HandlerID string

HandlerID id(name) of event handler

first character of HandlerID should not be `@`.

func (HandlerID) String

func (h HandlerID) String() string

func (HandlerID) Valid

func (h HandlerID) Valid() error

Valid parse string to handler id with validation

type MetaKey

type MetaKey string

MetaKey key of event's meta

func (MetaKey) String

func (h MetaKey) String() string

Jump to

Keyboard shortcuts

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