Documentation ¶
Overview ¶
Package reverseproxy implements a basic HTTP/TLS connection forwarder based either the passed Host header or SNI extension
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrClosed = errors.New("closed")
)
Error
var (
ErrInvalidPort = errors.New("cannot register on port 0")
)
Errors
Functions ¶
This section is empty.
Types ¶
type HostName ¶
type HostName string
HostName represents an exact hostname to match on
func (HostName) MatchService ¶
MatchService implements the MatchServiceName interface
type HostNameSuffix ¶
type HostNameSuffix string
HostNameSuffix represents a partial hostname to match the end on
func (HostNameSuffix) MatchService ¶
func (h HostNameSuffix) MatchService(serviceName string) bool
MatchService implements the MatchServiceName interface
type Hosts ¶
type Hosts []MatchServiceName
Hosts represents a list of servicenames to match against
func (Hosts) MatchService ¶
MatchService implements the MatchServiceName interface
type MatchServiceName ¶
MatchServiceName allows differing ways of matching a service name to a service
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
Port represents a service waiting on a port
func AddRedirect ¶
AddRedirect sets a port to be redirected to an external service
type UnixCmd ¶
type UnixCmd struct {
// contains filtered or unexported fields
}
UnixCmd holds the information required to control (close) a server and its resources
func RegisterCmd ¶
func RegisterCmd(msn MatchServiceName, cmd *exec.Cmd) (*UnixCmd, error)
RegisterCmd runs the given command and waits for incoming listeners from it
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package unixconn facilitates creating reverse proxy connections
|
Package unixconn facilitates creating reverse proxy connections |