events

package
v0.17.59 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SessionEventTypeCreated = "created"
View Source
const SessionEventTypeDeleted = "deleted"

Variables

This section is empty.

Functions

func AddSessionEventHandler

func AddSessionEventHandler(handler EdgeSessionEventHandler)

func Init

func Init(sessionStore persistence.SessionStore)

func RemoveSessionEventHandler

func RemoveSessionEventHandler(handler EdgeSessionEventHandler)

Types

type EdgeJsonFormatter added in v0.16.43

type EdgeJsonFormatter struct {
	events.JsonFormatter
}

func (*EdgeJsonFormatter) AcceptEdgeSessionEvent added in v0.16.43

func (formatter *EdgeJsonFormatter) AcceptEdgeSessionEvent(event *EdgeSessionEvent)

type EdgePlainTextFormatter added in v0.16.43

type EdgePlainTextFormatter struct {
	events.PlainTextFormatter
}

func (*EdgePlainTextFormatter) AcceptEdgeSessionEvent added in v0.16.43

func (formatter *EdgePlainTextFormatter) AcceptEdgeSessionEvent(event *EdgeSessionEvent)

type EdgeSessionEvent added in v0.16.43

type EdgeSessionEvent struct {
	Namespace    string    `json:"namespace"`
	EventType    string    `json:"event_type"`
	Id           string    `json:"id"`
	Timestamp    time.Time `json:"timestamp"`
	Token        string    `json:"token"`
	ApiSessionId string    `json:"api_session_id"`
	IdentityId   string    `json:"identity_id"`
}

func (*EdgeSessionEvent) String added in v0.16.43

func (event *EdgeSessionEvent) String() string

type EdgeSessionEventHandler added in v0.16.43

type EdgeSessionEventHandler interface {
	AcceptEdgeSessionEvent(event *EdgeSessionEvent)
}

type JsonEdgeSessionEvent added in v0.16.43

type JsonEdgeSessionEvent EdgeSessionEvent

func (*JsonEdgeSessionEvent) WriteTo added in v0.16.43

func (event *JsonEdgeSessionEvent) WriteTo(output io.WriteCloser) error

type PlainTextEdgeSessionEvent added in v0.16.43

type PlainTextEdgeSessionEvent EdgeSessionEvent

func (*PlainTextEdgeSessionEvent) WriteTo added in v0.16.43

func (event *PlainTextEdgeSessionEvent) WriteTo(output io.WriteCloser) error

Jump to

Keyboard shortcuts

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