events

package
v0.16.34 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSessionEventHandler

func AddSessionEventHandler(handler SessionEventHandler)

func Init

func Init(sessionStore persistence.SessionStore)

func RemoveSessionEventHandler

func RemoveSessionEventHandler(handler SessionEventHandler)

Types

type SessionCreatedEvent

type SessionCreatedEvent struct {
	Id           string
	Token        string
	ApiSessionId string
	IdentityId   string
}

type SessionDeletedEvent

type SessionDeletedEvent struct {
	Id    string
	Token string
}

type SessionEventHandler

type SessionEventHandler interface {
	HandleSessionCreated(event *SessionCreatedEvent)
	HandleSessionDeleted(event *SessionDeletedEvent)
}

Jump to

Keyboard shortcuts

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