analytics

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAnalyticsErr    = fmt.Errorf("analytics error")
	ErrInvalidPageSize = errors.Wrap(ErrAnalyticsErr, "invalid page size")
	ErrInvalidKey      = errors.Wrap(ErrAnalyticsErr, "invalid key")
)

Functions

This section is empty.

Types

type AnalyticsRepository

type AnalyticsRepository interface {
	QueryTopResultsByKey(ctx context.Context, params QueryTopResultsByKeyParams) (map[string]interface{}, error)
	ParseAndStore(context.Context, uuid.UUID, string) error
}

func NewAnalyticsRepository

func NewAnalyticsRepository(d db.Analytics) AnalyticsRepository

type QueryTopResultsByKeyParams

type QueryTopResultsByKeyParams struct {
	Key      string
	PageSize int
}

Jump to

Keyboard shortcuts

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