proxy

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateSessionTransport

type CreateSessionTransport struct {
	IsSuccess bool
	Error     error
	// contains filtered or unexported fields
}

func NewCreateSessionTransport

func NewCreateSessionTransport(pool *pool.Pool, node *pool.Node) *CreateSessionTransport

func (*CreateSessionTransport) RoundTrip

func (t *CreateSessionTransport) RoundTrip(request *http.Request) (*http.Response, error)

type ResponseWriter

type ResponseWriter struct {
	StatusCode int
	Output     []byte
	// contains filtered or unexported fields
}

func NewResponseWriter

func NewResponseWriter() *ResponseWriter

func (*ResponseWriter) Header

func (rw *ResponseWriter) Header() http.Header

func (*ResponseWriter) Write

func (rw *ResponseWriter) Write(bytes []byte) (int, error)

func (*ResponseWriter) WriteHeader

func (rw *ResponseWriter) WriteHeader(i int)

Source Files

  • response.go
  • transport.go

Jump to

Keyboard shortcuts

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