Documentation ¶
Index ¶
- Constants
- func AddSessionEventHandler(handler SessionEventHandler)
- func Init(dbProvider persistence.DbProvider, stores *persistence.Stores, ...)
- func RemoveSessionEventHandler(handler SessionEventHandler)
- type EdgeJsonFormatter
- type EdgePlainTextFormatter
- type EntityCountEvent
- type EntityCountEventHandler
- type JsonEntityCountEvent
- type JsonSessionEvent
- type PlainTextEntityCountEvent
- type PlainTextSessionEvent
- type SessionEvent
- type SessionEventHandler
Constants ¶
View Source
const EntityCountEventNS = "edge.entityCounts"
View Source
const SessionEventNS = "edge.sessions"
View Source
const SessionEventTypeCreated = "created"
View Source
const SessionEventTypeDeleted = "deleted"
Variables ¶
This section is empty.
Functions ¶
func AddSessionEventHandler ¶
func AddSessionEventHandler(handler SessionEventHandler)
func Init ¶
func Init(dbProvider persistence.DbProvider, stores *persistence.Stores, closeNotify <-chan struct{})
func RemoveSessionEventHandler ¶
func RemoveSessionEventHandler(handler SessionEventHandler)
Types ¶
type EdgeJsonFormatter ¶ added in v0.16.43
type EdgeJsonFormatter struct {
events.JsonFormatter
}
func (*EdgeJsonFormatter) AcceptEntityCountEvent ¶ added in v0.20.28
func (formatter *EdgeJsonFormatter) AcceptEntityCountEvent(event *EntityCountEvent)
func (*EdgeJsonFormatter) AcceptSessionEvent ¶ added in v0.20.28
func (formatter *EdgeJsonFormatter) AcceptSessionEvent(event *SessionEvent)
type EdgePlainTextFormatter ¶ added in v0.16.43
type EdgePlainTextFormatter struct {
events.PlainTextFormatter
}
func (*EdgePlainTextFormatter) AcceptEntityCountEvent ¶ added in v0.20.28
func (formatter *EdgePlainTextFormatter) AcceptEntityCountEvent(event *EntityCountEvent)
func (*EdgePlainTextFormatter) AcceptSessionEvent ¶ added in v0.20.28
func (formatter *EdgePlainTextFormatter) AcceptSessionEvent(event *SessionEvent)
type EntityCountEvent ¶ added in v0.20.28
type EntityCountEvent struct { Namespace string `json:"namespace"` Timestamp time.Time `json:"timestamp"` Counts map[string]int64 `json:"counts"` Error string `json:"error"` }
func (*EntityCountEvent) String ¶ added in v0.20.28
func (event *EntityCountEvent) String() string
type EntityCountEventHandler ¶ added in v0.20.28
type EntityCountEventHandler interface {
AcceptEntityCountEvent(event *EntityCountEvent)
}
type JsonEntityCountEvent ¶ added in v0.20.28
type JsonEntityCountEvent EntityCountEvent
func (*JsonEntityCountEvent) WriteTo ¶ added in v0.20.28
func (event *JsonEntityCountEvent) WriteTo(output io.WriteCloser) error
type JsonSessionEvent ¶ added in v0.20.28
type JsonSessionEvent SessionEvent
func (*JsonSessionEvent) WriteTo ¶ added in v0.20.28
func (event *JsonSessionEvent) WriteTo(output io.WriteCloser) error
type PlainTextEntityCountEvent ¶ added in v0.20.28
type PlainTextEntityCountEvent EntityCountEvent
func (*PlainTextEntityCountEvent) WriteTo ¶ added in v0.20.28
func (event *PlainTextEntityCountEvent) WriteTo(output io.WriteCloser) error
type PlainTextSessionEvent ¶ added in v0.20.28
type PlainTextSessionEvent SessionEvent
func (*PlainTextSessionEvent) WriteTo ¶ added in v0.20.28
func (event *PlainTextSessionEvent) WriteTo(output io.WriteCloser) error
type SessionEvent ¶ added in v0.20.28
type SessionEvent 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 (*SessionEvent) String ¶ added in v0.20.28
func (event *SessionEvent) String() string
type SessionEventHandler ¶
type SessionEventHandler interface {
AcceptSessionEvent(event *SessionEvent)
}
Click to show internal directories.
Click to hide internal directories.