events

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModificationCanceledEvent

type ModificationCanceledEvent struct {
	EventArgs *ModificationCanceledEventArgs
}

ModificationCanceledEvent is the event that happen when cancelation occurs

func (*ModificationCanceledEvent) GetEventArgs

func (m *ModificationCanceledEvent) GetEventArgs() interface{}

GetEventArgs gets the args of a event

func (*ModificationCanceledEvent) GetTypeOfFunc

func (m *ModificationCanceledEvent) GetTypeOfFunc() reflect.Type

GetTypeOfFunc gets the signature of the function of the event

func (*ModificationCanceledEvent) HasEventArgs

func (m *ModificationCanceledEvent) HasEventArgs() bool

HasEventArgs indicates if a event has args

func (*ModificationCanceledEvent) IsParallelPropagation

func (m *ModificationCanceledEvent) IsParallelPropagation() bool

IsParallelPropagation indicates if the propagation of the event is in parallel

func (*ModificationCanceledEvent) StopPropagation

func (m *ModificationCanceledEvent) StopPropagation() bool

StopPropagation stops the propagation of a event

type ModificationCanceledEventArgs

type ModificationCanceledEventArgs struct {
	CancelMessage string
}

ModificationCanceledEventArgs are the args for the event ModificationCanceled

type ModificationCanceledEventHandler

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

ModificationCanceledEventHandler handles the subscriptions to the event

func NewModificationCanceledEventHandler

func NewModificationCanceledEventHandler(subscriptions eventsmanager.Subscriptions) *ModificationCanceledEventHandler

NewModificationCanceledEventHandler returns a ModificationCanceledEventHandler

func (*ModificationCanceledEventHandler) ModificationCanceledSubscribe

func (m *ModificationCanceledEventHandler) ModificationCanceledSubscribe(subscription *func(eventArgs *ModificationCanceledEventArgs))

ModificationCanceledSubscribe sets new subscription to the event

func (*ModificationCanceledEventHandler) ModificationCanceledUnsubscribe

func (m *ModificationCanceledEventHandler) ModificationCanceledUnsubscribe(subscription *func(eventArgs *ModificationCanceledEventArgs))

ModificationCanceledUnsubscribe removes a subscriptions for the event

type ModifiedEvent

type ModifiedEvent struct{}

ModifiedEvent is the event that happen when modified occurs

func (*ModifiedEvent) GetEventArgs

func (*ModifiedEvent) GetEventArgs() interface{}

GetEventArgs gets the args of a event

func (*ModifiedEvent) GetTypeOfFunc

func (*ModifiedEvent) GetTypeOfFunc() reflect.Type

GetTypeOfFunc gets the signature of the function of the event

func (*ModifiedEvent) HasEventArgs

func (*ModifiedEvent) HasEventArgs() bool

HasEventArgs indicates if a event has args

func (*ModifiedEvent) IsParallelPropagation

func (*ModifiedEvent) IsParallelPropagation() bool

IsParallelPropagation indicates if the propagation of the event is in parallel

func (*ModifiedEvent) StopPropagation

func (*ModifiedEvent) StopPropagation() bool

StopPropagation stops the propagation of a event

type ModifiedEventHandler

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

ModifiedEventHandler handles the subscriptions to the event

func NewModifiedEventHandler

func NewModifiedEventHandler(subscriptions eventsmanager.Subscriptions) *ModifiedEventHandler

NewModifiedEventHandler returns a ModifiedEventHandler

func (*ModifiedEventHandler) ModifiedSubscribe

func (m *ModifiedEventHandler) ModifiedSubscribe(subscription *func())

ModifiedSubscribe removes a subscriptions for the event

func (*ModifiedEventHandler) ModifiedUnsubscribe

func (m *ModifiedEventHandler) ModifiedUnsubscribe(subscription *func())

ModifiedUnsubscribe sets new subscription to the event

type ModifyingEvent

type ModifyingEvent struct {
	EventArgs *ModifyingEventArgs
}

ModifyingEvent is the event that happen when modifying occurs

func (*ModifyingEvent) GetEventArgs

func (m *ModifyingEvent) GetEventArgs() interface{}

GetEventArgs gets the args of a event

func (*ModifyingEvent) GetTypeOfFunc

func (*ModifyingEvent) GetTypeOfFunc() reflect.Type

GetTypeOfFunc gets the signature of the function of the event

func (*ModifyingEvent) HasEventArgs

func (*ModifyingEvent) HasEventArgs() bool

HasEventArgs indicates if a event has args

func (*ModifyingEvent) IsParallelPropagation

func (*ModifyingEvent) IsParallelPropagation() bool

IsParallelPropagation indicates if the propagation of the event is in parallel

func (*ModifyingEvent) StopPropagation

func (m *ModifyingEvent) StopPropagation() bool

StopPropagation stops the propagation of a event

type ModifyingEventArgs

type ModifyingEventArgs struct {
	Cancel        bool
	CancelMessage string
	Config        interface{}
}

ModifyingEventArgs are the args for the event Modifying

type ModifyingEventHandler

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

ModifyingEventHandler handles the subscriptions to the event

func NewModifyingEventHandler

func NewModifyingEventHandler(subscriptions eventsmanager.Subscriptions) *ModifyingEventHandler

NewModifyingEventHandler returns a ModifyingEventHandler

func (*ModifyingEventHandler) ModifyingSubscribe

func (m *ModifyingEventHandler) ModifyingSubscribe(subscription *func(eventArgs *ModifyingEventArgs))

ModifyingSubscribe sets new subscription to the event

func (*ModifyingEventHandler) ModifyingUnsubscribe

func (m *ModifyingEventHandler) ModifyingUnsubscribe(subscription *func(eventArgs *ModifyingEventArgs))

ModifyingUnsubscribe removes a subscriptions for the event

type RestoredEvent

type RestoredEvent struct{}

RestoredEvent is the event that happen when restored occurs

func (*RestoredEvent) GetEventArgs

func (*RestoredEvent) GetEventArgs() interface{}

GetEventArgs gets the args of a event

func (*RestoredEvent) GetTypeOfFunc

func (*RestoredEvent) GetTypeOfFunc() reflect.Type

GetTypeOfFunc gets the signature of the function of the event

func (*RestoredEvent) HasEventArgs

func (*RestoredEvent) HasEventArgs() bool

HasEventArgs indicates if a event has args

func (*RestoredEvent) IsParallelPropagation

func (*RestoredEvent) IsParallelPropagation() bool

IsParallelPropagation indicates if the propagation of the event is in parallel

func (*RestoredEvent) StopPropagation

func (*RestoredEvent) StopPropagation() bool

StopPropagation stops the propagation of a event

type RestoredEventHandler

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

RestoredEventHandler handles the subscriptions to the event

func NewRestoredEventHandler

func NewRestoredEventHandler(subscriptions eventsmanager.Subscriptions) *RestoredEventHandler

NewRestoredEventHandler returns a RestoredEventHandler

func (*RestoredEventHandler) RestoredSubscribe

func (r *RestoredEventHandler) RestoredSubscribe(subscription *func())

RestoredSubscribe removes a subscriptions for the event

func (*RestoredEventHandler) RestoredUnsubscribe

func (r *RestoredEventHandler) RestoredUnsubscribe(subscription *func())

RestoredUnsubscribe sets new subscription to the event

Jump to

Keyboard shortcuts

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