event

package
v0.0.0-...-33f46c2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 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