Documentation ¶
Index ¶
- func DefaultCSS() string
- func DefaultJS() string
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(s int) (string, error)
- func ReadFile(filename string) (string, error)
- type Credentials
- type TunnelHandler
- type TunnelHandlerMux
- func (m *TunnelHandlerMux) Append(v *TunnelHandler) *TunnelHandlerMux
- func (m *TunnelHandlerMux) CSS(w http.ResponseWriter, r *http.Request)
- func (m *TunnelHandlerMux) CheckCookie(w http.ResponseWriter, r *http.Request) bool
- func (m *TunnelHandlerMux) Count() int
- func (m *TunnelHandlerMux) HandlerWrapper(h http.Handler) http.Handler
- func (m *TunnelHandlerMux) Home(w http.ResponseWriter, r *http.Request)
- func (m *TunnelHandlerMux) JS(w http.ResponseWriter, r *http.Request)
- func (m *TunnelHandlerMux) ListenAndServe()
- func (m *TunnelHandlerMux) Signin(w http.ResponseWriter, r *http.Request)
- func (t *TunnelHandlerMux) Tunnels() []*TunnelHandler
- func (m *TunnelHandlerMux) User() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCSS ¶
func DefaultCSS() string
func GenerateRandomBytes ¶
func GenerateRandomString ¶
Types ¶
type Credentials ¶
Create a struct that models the structure of a user, both in the request body, and in the DB
type TunnelHandler ¶
func NewTunnelHandler ¶
func NewTunnelHandler(ob samtunnel.SAMTunnel, err error) (*TunnelHandler, error)
func (*TunnelHandler) ServeHTTP ¶
func (t *TunnelHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type TunnelHandlerMux ¶
func NewTunnelHandlerMux ¶
func NewTunnelHandlerMux(host, port, user, password, css, javascript string) *TunnelHandlerMux
func (*TunnelHandlerMux) Append ¶
func (m *TunnelHandlerMux) Append(v *TunnelHandler) *TunnelHandlerMux
func (*TunnelHandlerMux) CSS ¶
func (m *TunnelHandlerMux) CSS(w http.ResponseWriter, r *http.Request)
func (*TunnelHandlerMux) CheckCookie ¶
func (m *TunnelHandlerMux) CheckCookie(w http.ResponseWriter, r *http.Request) bool
func (*TunnelHandlerMux) Count ¶ added in v0.33.0
func (m *TunnelHandlerMux) Count() int
func (*TunnelHandlerMux) HandlerWrapper ¶
func (m *TunnelHandlerMux) HandlerWrapper(h http.Handler) http.Handler
func (*TunnelHandlerMux) Home ¶
func (m *TunnelHandlerMux) Home(w http.ResponseWriter, r *http.Request)
func (*TunnelHandlerMux) JS ¶
func (m *TunnelHandlerMux) JS(w http.ResponseWriter, r *http.Request)
func (*TunnelHandlerMux) ListenAndServe ¶
func (m *TunnelHandlerMux) ListenAndServe()
func (*TunnelHandlerMux) Signin ¶
func (m *TunnelHandlerMux) Signin(w http.ResponseWriter, r *http.Request)
func (*TunnelHandlerMux) Tunnels ¶
func (t *TunnelHandlerMux) Tunnels() []*TunnelHandler
func (*TunnelHandlerMux) User ¶ added in v0.33.0
func (m *TunnelHandlerMux) User() string
Click to show internal directories.
Click to hide internal directories.