handlers

package
v0.0.0-...-d711783 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: LGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLink(dbCtx *db.DB, cfg *config.Config) func(w http.ResponseWriter, r *http.Request)

func AuthHandler

func AuthHandler(botToken string) func(http.ResponseWriter, *http.Request)
func DeleteLinks(dbCtx *db.DB) func(w http.ResponseWriter, r *http.Request)

func EditLinkSettings

func EditLinkSettings(dbCtx *db.DB, cfg *config.Config) func(w http.ResponseWriter, r *http.Request)

func GetConfig

func GetConfig(cfg *config.Config) func(w http.ResponseWriter, r *http.Request)

func GetLangPack

func GetLangPack(dbCtx *db.DB) func(w http.ResponseWriter, r *http.Request)
func GetLinks(dbCtx *db.DB) func(w http.ResponseWriter, r *http.Request)

func GetTrendingApps

func GetTrendingApps(dbCtx *db.DB) func(w http.ResponseWriter, r *http.Request)

func SearchApps

func SearchApps(dbCtx *db.DB) func(w http.ResponseWriter, r *http.Request)

Types

type ErrorResponse

type ErrorResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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