event_tracker

package
v16.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "event_tracker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	UserId    int64
	ProjectId int64
}

type EventData

type EventData struct {
	Events map[string][]Event
}

EventData is a struct that contains all the eventLists and used to send them to GitLab

func (*EventData) IsEmpty

func (ed *EventData) IsEmpty() bool

type EventTracker

type EventTracker struct {
	// contains filtered or unexported fields
}

func NewEventTracker

func NewEventTracker() *EventTracker

func (*EventTracker) CloneEventData

func (et *EventTracker) CloneEventData() *EventData

func (*EventTracker) RegisterEvent

func (et *EventTracker) RegisterEvent(name string) EventsInterface

func (*EventTracker) Subtract

func (et *EventTracker) Subtract(ed *EventData)

type EventTrackerCollector

type EventTrackerCollector interface {
	CloneEventData() *EventData
	Subtract(*EventData)
}

type EventTrackerInterface

type EventTrackerInterface interface {
	EventTrackerRegisterer
	EventTrackerCollector
}

type EventTrackerRegisterer

type EventTrackerRegisterer interface {
	RegisterEvent(name string) EventsInterface
}

type Events

type Events struct {
	// contains filtered or unexported fields
}

func (*Events) EmitEvent

func (e *Events) EmitEvent(userId, projectId int64)

type EventsInterface

type EventsInterface interface {
	EmitEvent(userId, projectId int64)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL