api

package
v0.0.0-...-9a80b0c Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleMessages

func HandleMessages(database *db.DB) http.HandlerFunc

HandleMessages fetches messages from the database and returns them as JSON

func HandleNotificationsConfig

func HandleNotificationsConfig(database *db.DB) http.HandlerFunc

func HandleRVC

func HandleRVC(database *db.DB) http.HandlerFunc

HandleRVC handles RVC-related API requests

func HandleSystemConfigs

func HandleSystemConfigs(database *db.DB) http.HandlerFunc

func LoginHandler

func LoginHandler(db *sql.DB) http.HandlerFunc

Types

type Claims

type Claims struct {
	Username string `json:"username"`
	jwt.StandardClaims
}

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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