Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PathHandler ¶
type PathHandler func(path ...string)
type PathInterceptor ¶
type PathInterceptor struct {
// contains filtered or unexported fields
}
func NewPathInterceptor ¶
NewPathInterceptor creates a new path proxy interceptor.
func (*PathInterceptor) Close ¶
func (proxy *PathInterceptor) Close() error
Close closes the proxy listener.
func (*PathInterceptor) HandlePath ¶
func (proxy *PathInterceptor) HandlePath(fn PathHandler)
HandlePath adds a new path handler to the interceptor.
func (*PathInterceptor) ProxyAddress ¶
func (proxy *PathInterceptor) ProxyAddress() string
ProxyAddress returns the network address of the proxy.
func (*PathInterceptor) TargetAddress ¶
func (proxy *PathInterceptor) TargetAddress() string
TargetAddress returns the network address of the target.
Click to show internal directories.
Click to hide internal directories.