handlers

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDoHHandler

func NewDoHHandler(handler dns.Handler) gin.HandlerFunc

func NewDoHResponseWriter

func NewDoHResponseWriter(clientIP string) (*doHResponseWriter, error)

func NewMobileconfigHandler

func NewMobileconfigHandler(serverName string) gin.HandlerFunc

func RobotsTxtHandler

func RobotsTxtHandler(c *gin.Context)

Types

type BlocklistHandler

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

func NewBlocklistHandler

func NewBlocklistHandler(updater *blocklist.Updater, logger *slog.Logger) *BlocklistHandler

func (*BlocklistHandler) Check

func (h *BlocklistHandler) Check(c *gin.Context)

func (*BlocklistHandler) Disable added in v0.13.0

func (h *BlocklistHandler) Disable(c *gin.Context)

func (*BlocklistHandler) Reenable added in v0.13.0

func (h *BlocklistHandler) Reenable(c *gin.Context)

func (*BlocklistHandler) Reload

func (h *BlocklistHandler) Reload(c *gin.Context)

func (*BlocklistHandler) Status added in v0.13.0

func (h *BlocklistHandler) Status(c *gin.Context)

Jump to

Keyboard shortcuts

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