Documentation ¶
Index ¶
Constants ¶
View Source
const (
MaxMessagesPerEventType int = 5
)
Variables ¶
This section is empty.
Functions ¶
func StartDefaultEventStore ¶
func StartDefaultEventStore(stopCh <-chan struct{})
Types ¶
type EventCount ¶
type EventGroup ¶
type EventGroup struct { Name string `json:"name"` Total int `json:"total"` Counts []EventCount `json:"counts"` LastOccurrence time.Time `json:"last_occurrence"` }
func Query ¶
func Query() []EventGroup
func (*EventGroup) Merge ¶
func (e *EventGroup) Merge(event Event)
type EventStore ¶
type EventStore struct {
// contains filtered or unexported fields
}
var DefaultStore *EventStore
func NewEventStore ¶
func NewEventStore() *EventStore
func (*EventStore) Query ¶
func (store *EventStore) Query() []EventGroup
func (*EventStore) Record ¶
func (store *EventStore) Record(name string, detail string)
func (*EventStore) Recordf ¶
func (store *EventStore) Recordf(name string, format string, args ...interface{})
func (*EventStore) Start ¶
func (store *EventStore) Start(stopCh <-chan struct{})
Click to show internal directories.
Click to hide internal directories.