Documentation ¶
Index ¶
- Constants
- func AddSessionEventHandler(handler EdgeSessionEventHandler)
- func Init(sessionStore persistence.SessionStore)
- func RemoveSessionEventHandler(handler EdgeSessionEventHandler)
- type EdgeJsonFormatter
- type EdgePlainTextFormatter
- type EdgeSessionEvent
- type EdgeSessionEventHandler
- type JsonEdgeSessionEvent
- type PlainTextEdgeSessionEvent
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
Click to show internal directories.
Click to hide internal directories.