Documentation
¶
Index ¶
- type Proxy
- func (p *Proxy) Close()
- func (p *Proxy) Host() string
- func (p *Proxy) NewInfraLog() error
- func (p *Proxy) Serve(withTLS bool) error
- func (p *Proxy) Shutdown()
- func (p *Proxy) WriteErrorJson(w http.ResponseWriter, code int, err error)
- func (p *Proxy) WriteJson(w http.ResponseWriter, i interface{})
- func (p *Proxy) WriteMessageJson(w http.ResponseWriter, message string)
- type Upgrader
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 (*Proxy) NewInfraLog ¶
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)
Click to show internal directories.
Click to hide internal directories.