teahooks

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

View Source
const (
	EventReload        = "reload"        // reload system
	EventConfigChanged = "configChanged" // config changed
)

Variables

This section is empty.

Functions

func Call

func Call(event Event)

call handlers

func On

func On(event Event, f Handler)

add handlers

Types

type Event

type Event = string

type Handler

type Handler func()

Jump to

Keyboard shortcuts

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