Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRPReader ¶
NewRPReader creates the new RPReader from an io.Reader.
func NewRPWriteCloser ¶
func NewRPWriteCloser(wc io.WriteCloser) io.WriteCloser
NewRPWriteCloser creates the new RPWriteCloser from an io.WriteCloser.
Types ¶
type RPWriteCloser ¶
RPWriteCloser defines a customized WriteCloser, which is used to modify data.
type RProxy ¶
type RProxy struct {
// contains filtered or unexported fields
}
RProxy is used to store configurations of the reverse proxy and start running the proxy.
func NewRProxy ¶
func NewRProxy(listenProto, listenAddr, backendProto, backendAddr, rootCert, serverCert, serverKey, clientCert, clientKey, serverName string) *RProxy
NewRProxy creates an RProxy instance.
func NewRProxyWithoutCerts ¶
NewRProxyWithoutCerts creates an RProxy instance without setting certificate files, which is used in pure TCP setting or set the TLS configuration later.
func (*RProxy) SetClientConfig ¶
SetClientConfig sets the config for client (backend TLS).
func (*RProxy) SetServerConfig ¶
SetServerConfig sets the config for server (listen TLS).
func (*RProxy) SetVerbose ¶
SetVerbose sets the verbose mode, which prints all the data sent and received.