api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package api provides HTTP handlers for the API endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStateAction

func GetStateAction(w http.ResponseWriter, _ *http.Request)

GetStateAction handles GET requests to retrieve the state

func HealthAction

func HealthAction(w http.ResponseWriter, _ *http.Request)

HealthAction handles health check requests

func ReadyAction

func ReadyAction(w http.ResponseWriter, _ *http.Request)

ReadyAction handles readiness check requests

func UpdateStateAction

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

UpdateStateAction handles PUT/POST requests to update the state

Types

type UpdateStateRequest

type UpdateStateRequest struct {
	Value string `json:"value"`
}

UpdateStateRequest represents the request body for updating state

Jump to

Keyboard shortcuts

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