event

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewEventService

func NewEventService() (svc interfaces.EventService)

func SendEvent

func SendEvent(eventName string, data ...interface{})

Types

type Service

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

func (*Service) Register

func (svc *Service) Register(key, include, exclude string, ch *chan interfaces.EventData)

func (*Service) SendEvent

func (svc *Service) SendEvent(eventName string, data ...interface{})

func (*Service) Unregister

func (svc *Service) Unregister(key string)

Jump to

Keyboard shortcuts

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