api

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 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 Handler

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

Handler handles API requests

func New

func New(cfg *config.Config, client *valkey.Client) *Handler

New creates a new API handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler

func (*Handler) SetOnNotificationsDisabled

func (h *Handler) SetOnNotificationsDisabled(fn func())

SetOnNotificationsDisabled sets the callback for when notifications are disabled at runtime

func (*Handler) SetOnNotificationsEnabled

func (h *Handler) SetOnNotificationsEnabled(fn func())

SetOnNotificationsEnabled sets the callback for when notifications are enabled at runtime

Jump to

Keyboard shortcuts

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