analytics

package
v0.0.0-...-20282f3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateID

func GenerateID(profileID uuid.UUID, key string) string

GenerateID for use in analytics based on profileID

Types

type Config

type Config struct {
	WriteKey  string
	DataPlane string
	Verbose   bool
}

type Service

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

func NewService

func NewService(config Config) *Service

func (*Service) SearchEvent

func (s *Service) SearchEvent(
	ctx *gin.Context,
	analyticsID string,
	queryString string,
	typeArg *string,
	searchProvider string,
	searchResult common.SearchResult,
	duration time.Duration,
)

Jump to

Keyboard shortcuts

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