handler

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PanDomainSubscribeHandler

func PanDomainSubscribeHandler(deps SubscribeDeps) 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 SubscribeHandler

func SubscribeHandler(deps SubscribeDeps) 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]

Types

type SubscribeDeps

type SubscribeDeps struct {
	Service subscription.Service
	Config  func() config.SubscribeConfig
}

Directories

Path Synopsis
admin
public

Jump to

Keyboard shortcuts

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