MCPcopy Index your code
hub / github.com/dreamsofcode-io/zenstats / NewIndex

Function NewIndex

internal/handler/index.go:28–42  ·  view source on GitHub ↗
(
	logger *slog.Logger,
	quotes *quote.Service,
	tmpl *template.Template,
	repo *repository.Queries,
)

Source from the content-addressed store, hash-verified

26}
27
28func NewIndex(
29 logger *slog.Logger,
30 quotes *quote.Service,
31 tmpl *template.Template,
32 repo *repository.Queries,
33) *Index {
34 index := &Index{
35 logger: logger,
36 tmpl: tmpl,
37 quotes: quotes,
38 repo: repo,
39 }
40
41 return index
42}
43
44type Visitors struct {
45 LastHour int64

Callers 1

loadPagesMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected