report

package
v0.0.0-...-c20d9b3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstallData

type InstallData struct {
	MachineID string `json:"machine_id"`
	Version   string `json:"version"`
	Timestamp string `json:"timestamp"`
	Type      string `json:"type"`
}

type Reporter

type Reporter struct {
	IDFile string
	// contains filtered or unexported fields
}

func NewReport

func NewReport(logger *slog.Logger, cfg *config.Config, version *version.VersionInfo) *Reporter

func (*Reporter) GetMachineID

func (r *Reporter) GetMachineID() string

func (*Reporter) Report

func (r *Reporter) Report(index string, data any) error

func (*Reporter) ReportInstallation

func (r *Reporter) ReportInstallation() error

Jump to

Keyboard shortcuts

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