analytics

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module implements the mdk.Module interface for Analytics.

func NewModule

func NewModule() *Module

func (*Module) FieldResolvers

func (m *Module) FieldResolvers() map[string]any

func (*Module) GetSalesStats

func (m *Module) GetSalesStats(ctx context.Context) (*SalesStats, error)

func (*Module) GetSystemStats

func (m *Module) GetSystemStats(ctx context.Context) (*SystemStats, error)

func (*Module) ID

func (m *Module) ID() string

func (*Module) Init

func (m *Module) Init(ctx context.Context, rt mdk.Runtime) error

func (*Module) Models

func (m *Module) Models() []any

func (*Module) Mutations

func (m *Module) Mutations() map[string]any

func (*Module) Queries

func (m *Module) Queries() map[string]any

func (*Module) Repo

func (m *Module) Repo() any

func (*Module) Routes

func (m *Module) Routes() []mdk.Route

func (*Module) Shutdown

func (m *Module) Shutdown(ctx context.Context) error

type SalesStats

type SalesStats struct {
	TotalRevenue  float64 `json:"totalRevenue"`
	OrderCount    int     `json:"orderCount"`
	AvgOrderValue float64 `json:"avgOrderValue"`
}

type SystemStats

type SystemStats struct {
	TotalWorkflows     int     `json:"totalWorkflows"`
	SuccessRate        float64 `json:"successRate"`
	FailureRate        float64 `json:"failureRate"`
	AvgExecutionTimeMs float64 `json:"avgExecutionTimeMs"`
}

Jump to

Keyboard shortcuts

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