trigger

package
v0.0.0-...-6d4b899 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package trigger Date: 2023/7/19 16:37 Author: Amu Description: 事件触发器

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trigger

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

func NewTrigger

func NewTrigger() *Trigger

func (*Trigger) CallEvent

func (t *Trigger) CallEvent(eventName string, param interface{}) error

func (*Trigger) ClearEvent

func (t *Trigger) ClearEvent()

func (*Trigger) DeleteEvent

func (t *Trigger) DeleteEvent(eventName string)

func (*Trigger) Events

func (t *Trigger) Events() (eventNames []string)

func (*Trigger) HasEvent

func (t *Trigger) HasEvent(eventName string) bool

func (*Trigger) RegisterEvent

func (t *Trigger) RegisterEvent(eventName string, callback func(params interface{}) error) error

Jump to

Keyboard shortcuts

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