handler

package
v1.14.14 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PanDomainSubscribeHandler added in v1.2.14

func PanDomainSubscribeHandler(svcCtx *svc.ServiceContext) app.HandlerFunc

PanDomainSubscribeHandler returns a subscription selected by the request host.

@Summary Get pan-domain subscription configuration @Tags user @Produce plain @Param User-Agent header string false "Client user agent" @Success 200 {string} string @Router / [get]

func RegisterNotifyHandlers

func RegisterNotifyHandlers(router *server.Hertz, serverCtx *svc.ServiceContext)

func RegisterTelegramHandlers

func RegisterTelegramHandlers(router *server.Hertz, serverCtx *svc.ServiceContext)

func SubscribeHandler

func SubscribeHandler(svcCtx *svc.ServiceContext) app.HandlerFunc

SubscribeHandler returns a client subscription configuration.

@Summary Get subscription configuration @Tags user @Produce plain @Param token query string false "Subscription token; alternatively send the token header" @Param token header string false "Subscription token" @Param flag query string false "Subscription format flag" @Param type query string false "Subscription format type" @Param User-Agent header string false "Client user agent" @Success 200 {string} string @Router /v1/subscribe/config [get]

func TelegramHandler

func TelegramHandler(svcCtx *svc.ServiceContext) app.HandlerFunc

TelegramHandler documents Telegram.

@Summary Telegram @Tags common @Accept json @Produce json @Security TelegramSecret @Param request body object true "Telegram Bot API update" @Success 200 {object} result.ResponseSuccessBean @Router /v1/telegram/webhook [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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