usecase

package
v0.0.0-...-0fc7a0e Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Usecase

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

func New

func New(repo statistics.Repo, logger *slog.Logger) *Usecase

func (*Usecase) GetTopLinksByUserAndPeriod

func (uc *Usecase) GetTopLinksByUserAndPeriod(ctx context.Context, userID *int, period string, zone string, limit int) ([]models.LinkStat, error)

func (*Usecase) GetTopLinksByZone

func (uc *Usecase) GetTopLinksByZone(ctx context.Context, zone string, limit int) ([]models.LinkStat, error)

Jump to

Keyboard shortcuts

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