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)
Click to show internal directories.
Click to hide internal directories.