Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDoesNotExist = errors.New("log: does not exist")
Functions ¶
func Deduplicate ¶
remove duplicate facts from a stream
Types ¶
type Event ¶
type Event struct { Type EventType Entity *origins.Ident Attribute *origins.Ident Before *origins.Fact After *origins.Fact }
func Timeline ¶
Timeline returns an ordered set of events derived from the fact iterator. The iterator is assumed to return facts in reverse order by time (newest first) which is what the Log view returns.
func (*Event) MarshalJSON ¶
type EventType ¶
type EventType int8
An EventType denotes the type of event
func (EventType) MarshalJSON ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
A Log is an ordered sequence of facts within a domain.
func (*Log) Now ¶
Now returns a view of the log with a time boundary set to the current time. This is equivalent to: Asof(time.Now().UTC())
Click to show internal directories.
Click to hide internal directories.