Back to godoc.org

Package client

v0.0.0-...-2a599bc
Latest Go to latest

The highest tagged major version is .

Published: Sep 16, 2020 | License: Apache-2.0 | Module: github.com/criticalstack/quake-kube

Index

Variables

var DefaultUpgrader = &websocket.Upgrader{
	ReadBufferSize:  1024,
	WriteBufferSize: 1024,
	CheckOrigin: func(r *http.Request) bool {
		return true
	},
}

func NewRouter

func NewRouter(cfg *Config) (*echo.Echo, error)

type Config

type Config struct {
	ContentServerURL string
	ServerAddr       string

	Files http.FileSystem
}

type HostHeaderTransport

type HostHeaderTransport struct {
	http.RoundTripper
	Host string
}

func (*HostHeaderTransport) RoundTrip

func (t *HostHeaderTransport) RoundTrip(req *http.Request) (*http.Response, error)

type Server

type Server struct {
	Addr       string
	Handler    http.Handler
	ServerAddr string
}

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) Serve

func (s *Server) Serve(l net.Listener) error

type TemplateRenderer

type TemplateRenderer struct {
	*template.Template
}

func (*TemplateRenderer) Render

func (t *TemplateRenderer) Render(w io.Writer, name string, data interface{}, c echo.Context) error

type WebsocketUDPProxy

type WebsocketUDPProxy struct {
	Upgrader *websocket.Upgrader
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(addr string) (*WebsocketUDPProxy, error)

func (*WebsocketUDPProxy) ServeHTTP

func (w *WebsocketUDPProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier