handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const CookieName = "mdproxy_token"

CookieName is the name of the authentication cookie.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalHandler

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

func NewLocalHandler

func NewLocalHandler(cfg *config.Config) *LocalHandler

func (*LocalHandler) ServeHTTP

func (h *LocalHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type LoginHandler

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

func NewLoginHandler

func NewLoginHandler(cfg *config.Config) *LoginHandler

func (*LoginHandler) ServeHTTP

func (h *LoginHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RemoteHandler

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

func NewRemoteHandler

func NewRemoteHandler(cfg *config.Config, client *http.Client) *RemoteHandler

func (*RemoteHandler) ServeHTTP

func (h *RemoteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SSEHandler

type SSEHandler struct{}

func NewSSEHandler

func NewSSEHandler() *SSEHandler

func (*SSEHandler) ServeHTTP

func (h *SSEHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TopHandler

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

func NewTopHandler

func NewTopHandler(cfg *config.Config) *TopHandler

func (*TopHandler) ServeHTTP

func (h *TopHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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