Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLogDispatcher ¶
type AccessLogDispatcher struct {
// contains filtered or unexported fields
}
func NewAccessLogDispatcher ¶
func NewAccessLogDispatcher(cfg map[string]interface{}, logger *slog.Logger) (*AccessLogDispatcher, error)
func (*AccessLogDispatcher) Close ¶
func (a *AccessLogDispatcher) Close() error
func (*AccessLogDispatcher) Name ¶
func (a *AccessLogDispatcher) Name() string
type Dispatcher ¶
Dispatcher interface that all providers must implement
type Event ¶
type Event struct { Name string Domain string URL string Referrer string UserAgent string UserIP string RemoteAddr string Timestamp string ShortCode string TargetURL string }
Event represents an analytics event
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles multiple dispatchers and workers
func NewManager ¶
NewManager creates a new analytics manager
type MatomoConfig ¶
type MatomoDispatcher ¶
type MatomoDispatcher struct {
// contains filtered or unexported fields
}
func NewMatomoDispatcher ¶
func NewMatomoDispatcher(config MatomoConfig, logger *slog.Logger) (*MatomoDispatcher, error)
func (*MatomoDispatcher) Close ¶
func (m *MatomoDispatcher) Close() error
func (*MatomoDispatcher) Name ¶
func (m *MatomoDispatcher) Name() string
type PlausibleConfig ¶
type PlausibleDispatcher ¶
type PlausibleDispatcher struct {
// contains filtered or unexported fields
}
func NewPlausibleDispatcher ¶
func NewPlausibleDispatcher(config PlausibleConfig, logger *slog.Logger) (*PlausibleDispatcher, error)
func (*PlausibleDispatcher) Name ¶
func (p *PlausibleDispatcher) Name() string
type WebhookConfig ¶
type WebhookDispatcher ¶
type WebhookDispatcher struct {
// contains filtered or unexported fields
}
func NewWebhookDispatcher ¶
func NewWebhookDispatcher(config WebhookConfig, logger *slog.Logger) (*WebhookDispatcher, error)
func (*WebhookDispatcher) Name ¶
func (w *WebhookDispatcher) Name() string
Click to show internal directories.
Click to hide internal directories.