server

package
v0.0.0-...-add91ee Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveAudioTestResult

func SaveAudioTestResult(w http.ResponseWriter, r *http.Request)

func Start

func Start()

Types

type AudioData

type AudioData struct {
	NoiseLevels  float64 `json:"noiseLevels"`
	VolumeLevels float64 `json:"volumeLevels"`
	Passed       bool    `json:"passed"`
	Timestamp    string  `json:"timestamp"`
}

Write struct

type AudioDataPayload

type AudioDataPayload struct {
	Namespace   string    `json:"namespace"`
	Interaction string    `json:"interaction"`
	Data        AudioData `json:"data"`
}

################ Saving noise and volume level from test pages ########################// Request payload structure

Jump to

Keyboard shortcuts

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