wsproxy

package
v0.0.0-...-1853ad3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetURLer

type GetURLer interface {
	GetURL(url string) string
}

GetURLer returns a full url for a url path.

type WSProxy

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

WSProxy holds the state of the proxy.

func New

func New(geturler GetURLer) *WSProxy

New returns an initialized WSProxy.

func (*WSProxy) ServeHTTP

func (ws *WSProxy) 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