http

package
v0.5.90 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Download added in v0.5.90

type Download struct {
}

func (Download) Router added in v0.5.90

func (down Download) Router(router *mux.Router)

type Login added in v0.5.90

type Login struct {
}

func (Login) Login added in v0.5.90

func (l Login) Login(w http.ResponseWriter, r *http.Request)

func (Login) Router added in v0.5.90

func (l Login) Router(router *mux.Router)

type Server

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

func NewServer

func NewServer(listen, staticDir, authFile string) (h *Server)

func (*Server) Handle404 added in v0.2.11

func (h *Server) Handle404(w http.ResponseWriter, r *http.Request)

func (*Server) Initialize

func (h *Server) Initialize()

func (*Server) IsAuth

func (h *Server) IsAuth(w http.ResponseWriter, r *http.Request) bool

func (*Server) LoadRouter

func (h *Server) LoadRouter()

func (*Server) LogRequest added in v0.4.83

func (h *Server) LogRequest(r *http.Request)

func (*Server) Middleware

func (h *Server) Middleware(next http.Handler) http.Handler

func (*Server) Router

func (h *Server) Router() *mux.Router

func (*Server) SetCert

func (h *Server) SetCert(keyFile, crtFile string)

func (*Server) Shutdown

func (h *Server) Shutdown()

func (*Server) Start

func (h *Server) Start() error

type Static added in v0.2.11

type Static struct {
}

func (Static) Favicon added in v0.2.11

func (s Static) Favicon(w http.ResponseWriter, r *http.Request)

func (Static) Files added in v0.2.11

func (s Static) Files(w http.ResponseWriter, r *http.Request)

func (Static) Router added in v0.2.11

func (s Static) Router(router *mux.Router)

type UI added in v0.2.11

type UI struct {
}

func (UI) Console added in v0.2.11

func (ui UI) Console(w http.ResponseWriter, r *http.Request)

func (UI) Hi added in v0.2.11

func (ui UI) Hi(w http.ResponseWriter, r *http.Request)

func (UI) Home added in v0.2.11

func (ui UI) Home(w http.ResponseWriter, r *http.Request)

func (UI) Index added in v0.2.11

func (ui UI) Index(w http.ResponseWriter, r *http.Request)

func (UI) Instance added in v0.2.11

func (ui UI) Instance(w http.ResponseWriter, r *http.Request)

func (UI) Router added in v0.2.11

func (ui UI) Router(router *mux.Router)

func (UI) Spice added in v0.4.83

func (ui UI) Spice(w http.ResponseWriter, r *http.Request)

type WebSocket added in v0.2.11

type WebSocket struct {
}

func (WebSocket) GetTarget added in v0.2.11

func (w WebSocket) GetTarget(r *http.Request) string

func (WebSocket) Router added in v0.2.11

func (w WebSocket) Router(router *mux.Router)

func (WebSocket) Sockify added in v0.2.11

func (w WebSocket) Sockify(ws *websocket.Conn)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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