analytics

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventReader

type EventReader interface {
	QueryEvents(context.Context, int, int) ([]clickhousepkg.EventRow, error)
	QueryStats(context.Context) (uint64, error)
	QuerySources(context.Context) ([]clickhousepkg.SourceStat, error)
	QueryEventTypes(context.Context) ([]clickhousepkg.EventTypeStat, error)
	QueryEventsFiltered(context.Context, clickhousepkg.EventFilters) ([]clickhousepkg.EventRow, error)
}

type Handler

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

func NewHandler

func NewHandler(events EventReader) *Handler

func (*Handler) EventTypes

func (h *Handler) EventTypes(w http.ResponseWriter, r *http.Request)

func (*Handler) Events

func (h *Handler) Events(w http.ResponseWriter, r *http.Request)

func (*Handler) Sources

func (h *Handler) Sources(w http.ResponseWriter, r *http.Request)

func (*Handler) Stats

func (h *Handler) Stats(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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