Documentation
¶
Overview ¶
Optional, standardized event structure + serialization format
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Allocators ¶
type Event ¶
event has type (event's name) and metadata (common attributes shared by all events)
func Deserialize ¶
func Deserialize(input string, allocators Allocators) (Event, error)
type EventMeta ¶
type EventMeta struct {
Timestamp time.Time
TimestampOfRecording time.Time
// whose resource was acted upon?
// - user changes her password => target=<self> and actor=<self> (though actor omitted then)
// - when admin changes another users password => target=<someone> and actor=<admin>
UserId string
// "who done this"? most times user acts on her own resources, but sometimes
// e.g. a super user can do stuff to another user's (the target) resources
ImpersonatingUserId string
}
func MetaSystemUser ¶
func MetaWithImpersonator ¶
func (*EventMeta) ActingUserOrDefaultToTarget ¶
returns "who acted on someones resource" (most times same as user id, but could be impersonator)
Click to show internal directories.
Click to hide internal directories.