event

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType string
const (
	Added   EventType = "add"
	Removed EventType = "remove"
)

type RegistrationEvent

type RegistrationEvent interface {
	Type() EventType
	Api() api.Api
}

func NewAddEvent

func NewAddEvent(a api.Api) RegistrationEvent

func NewRemovedEvent

func NewRemovedEvent(a api.Api) RegistrationEvent

type RegistrationListener

type RegistrationListener interface {
	HandleRegistration(RegistrationEvent)
}

Jump to

Keyboard shortcuts

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