Documentation ¶
Index ¶
Constants ¶
View Source
const (
ModuleName = "event_tracker"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventData ¶
EventData is a struct that contains all the eventLists and used to send them to GitLab
type EventTracker ¶
type EventTracker struct {
// contains filtered or unexported fields
}
func NewEventTracker ¶
func NewEventTracker() *EventTracker
func (*EventTracker) AccumulatedEvents ¶
func (et *EventTracker) AccumulatedEvents() int64
func (*EventTracker) CloneEventData ¶
func (et *EventTracker) CloneEventData() *EventData
func (*EventTracker) GetEventSizeLimit ¶
func (et *EventTracker) GetEventSizeLimit() <-chan struct{}
func (*EventTracker) RegisterEvent ¶
func (et *EventTracker) RegisterEvent(name string) EventsInterface
func (*EventTracker) Subtract ¶
func (et *EventTracker) Subtract(ed *EventData)
type EventTrackerCollector ¶
type EventTrackerInterface ¶
type EventTrackerInterface interface { EventTrackerRegisterer EventTrackerCollector }
type EventTrackerRegisterer ¶
type EventTrackerRegisterer interface {
RegisterEvent(name string) EventsInterface
}
type EventsInterface ¶
type EventsInterface interface {
EmitEvent(event Event)
}
Click to show internal directories.
Click to hide internal directories.