service

package
v0.0.0-...-6730fbd Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 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 IVisitLogService

type IVisitLogService interface {
	CollectVisitLog(ctx context.Context, visitHistory domain.VisitHistory) error
	GetTodayViewCount(ctx context.Context) (int64, error)
	GetTodayUserViewCount(ctx context.Context) (int64, error)
	GetViewTendencyStats4PV(ctx context.Context, days int) ([]domain.TendencyData, error)
	GetViewTendencyStats4UV(ctx context.Context, days int) ([]domain.TendencyData, error)
	GetIpsByDate(ctx context.Context, start time.Time, end time.Time) ([]string, error)
}

type VisitLogService

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

func (*VisitLogService) CollectVisitLog

func (s *VisitLogService) CollectVisitLog(ctx context.Context, visitHistory domain.VisitHistory) error

func (*VisitLogService) GetIpsByDate

func (s *VisitLogService) GetIpsByDate(ctx context.Context, start time.Time, end time.Time) ([]string, error)

func (*VisitLogService) GetTodayUserViewCount

func (s *VisitLogService) GetTodayUserViewCount(ctx context.Context) (int64, error)

func (*VisitLogService) GetTodayViewCount

func (s *VisitLogService) GetTodayViewCount(ctx context.Context) (int64, error)

func (*VisitLogService) GetViewTendencyStats4PV

func (s *VisitLogService) GetViewTendencyStats4PV(ctx context.Context, days int) ([]domain.TendencyData, error)

func (*VisitLogService) GetViewTendencyStats4UV

func (s *VisitLogService) GetViewTendencyStats4UV(ctx context.Context, days int) ([]domain.TendencyData, error)

Jump to

Keyboard shortcuts

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