proxy

package
v0.0.0-...-119a651 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Upgrader *Upgrader

	Ctx    *context.Context
	Cancel *context.CancelFunc
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy() (*Proxy, error)

func (*Proxy) Close

func (p *Proxy) Close()

func (*Proxy) Host

func (p *Proxy) Host() string

func (*Proxy) NewInfraLog

func (p *Proxy) NewInfraLog() error

func (*Proxy) Serve

func (p *Proxy) Serve(withTLS bool) error

func (*Proxy) Shutdown

func (p *Proxy) Shutdown()

func (*Proxy) WriteErrorJson

func (p *Proxy) WriteErrorJson(w http.ResponseWriter, code int, err error)

func (*Proxy) WriteJson

func (p *Proxy) WriteJson(w http.ResponseWriter, i interface{})

func (*Proxy) WriteMessageJson

func (p *Proxy) WriteMessageJson(w http.ResponseWriter, message string)

type Upgrader

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

func NewUpgrader

func NewUpgrader(port int) *Upgrader

func (*Upgrader) Serve

func (up *Upgrader) Serve() error

func (*Upgrader) Shutdown

func (up *Upgrader) Shutdown()

Jump to

Keyboard shortcuts

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