handler

package
v0.0.0-...-3ea2aa1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright (c) 2025 Tobias Schäfer. All rights reserved. Licensed under the MIT license, see LICENSE in the project root for details.

Copyright (c) 2025 Tobias Schäfer. All rights reserved. Licensed under the MIT license, see LICENSE in the project root for details.

Copyright (c) 2025 Tobias Schäfer. All rights reserved. Licensed under the MIT license, see LICENSE in the project root for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONError

func JSONError(w http.ResponseWriter, status int, message string)

func MethodNotAllowedHandler

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

func Metrics

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

func NotFoundHandler

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

Types

type Handle

type Handle struct {
	Cmd vcgencmd.Exec
}

func (Handle) Clock

func (h Handle) Clock(w http.ResponseWriter, r *http.Request)

func (Handle) Configuration

func (h Handle) Configuration(w http.ResponseWriter, r *http.Request)

func (Handle) Temperature

func (h Handle) Temperature(w http.ResponseWriter, r *http.Request)

func (Handle) Throttled

func (h Handle) Throttled(w http.ResponseWriter, r *http.Request)

func (Handle) Voltages

func (h Handle) Voltages(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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