event

package
v0.0.0-...-3c02646 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnySessionStarted

func AnySessionStarted() events.Event

AnySessionStarted is emitted when any session has been started.

func AnySessionTerminated

func AnySessionTerminated() events.Event

AnySessionTerminated is emitted when any session has been terminated.

func AnyUserActivated

func AnyUserActivated() events.Event

AnyUserActivated should be emitted whenever any User is activated. The messages will contain the ent.User that was activated as the body.

func AnyUserDisabled

func AnyUserDisabled() events.Event

AnyUserDisabled should be emitted whenever any User is disabled. The message will contain the ent.User that was disabled as the body.

func AnyUserRegistered

func AnyUserRegistered() events.Event

AnyUserRegistered should be emitted whenever a User first registers for Response. The message will contain the ent.User that registered as the body.

func SessionTerminated

func SessionTerminated(session *ent.Session) events.Event

SessionTerminated is emitted when a specific session is terminated.

func UserActivated

func UserActivated(user *ent.User) events.Event

UserActivated should be emitted whenever the User is activated. This should only ever be emitted once and will never be emitted again unless the user is deactivated and then reactivated. The messages will contain the ent.User that was activated as the body.

func UserDisabled

func UserDisabled(user *ent.User) events.Event

UserDisabled should be emitted whenever the User is disabled. The message will contain the ent.User that was disabled as the body.

Types

This section is empty.

Jump to

Keyboard shortcuts

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