Documentation ¶
Index ¶
- func BridgeResource(rw http.ResponseWriter, r *http.Request, path string)
- func Handle(settings *HandleSettings) error
- type BridgeLink
- type HTTPHandle
- func (hs HTTPHandle) Dial(remoteaddr string) (io.ReadWriteCloser, error)
- func (hs HTTPHandle) Dial2(remoteaddr, protocol string) (io.ReadWriteCloser, error)
- func (hs HTTPHandle) ServeBridge(rw http.ResponseWriter, r *http.Request)
- func (hs HTTPHandle) ServeClient(rw http.ResponseWriter, r *http.Request)
- func (hs HTTPHandle) ServeHTTP(rw http.ResponseWriter, r *http.Request)
- type HandleSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BridgeResource ¶
func BridgeResource(rw http.ResponseWriter, r *http.Request, path string)
func Handle ¶
func Handle(settings *HandleSettings) error
Types ¶
type BridgeLink ¶
type BridgeLink struct { RemoteAddr string // contains filtered or unexported fields }
type HTTPHandle ¶
type HTTPHandle struct {
// contains filtered or unexported fields
}
func NewHttpHandle ¶
func NewHttpHandle() *HTTPHandle
func (HTTPHandle) Dial ¶
func (hs HTTPHandle) Dial(remoteaddr string) (io.ReadWriteCloser, error)
func (HTTPHandle) Dial2 ¶
func (hs HTTPHandle) Dial2(remoteaddr, protocol string) (io.ReadWriteCloser, error)
func (HTTPHandle) ServeBridge ¶
func (hs HTTPHandle) ServeBridge(rw http.ResponseWriter, r *http.Request)
func (HTTPHandle) ServeClient ¶
func (hs HTTPHandle) ServeClient(rw http.ResponseWriter, r *http.Request)
func (HTTPHandle) ServeHTTP ¶
func (hs HTTPHandle) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type HandleSettings ¶
Click to show internal directories.
Click to hide internal directories.