Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInterceptAddress ¶
func ServicePoller ¶
Types ¶
type InterceptedService ¶
type InterceptedService struct { Name string Addr interceptAddress Data interface{} // interceptor-specific data attached to this intercept. intent is to provide context needed in Interceptor.StopIntercepting }
type Interceptor ¶
type LUT ¶
type LUT map[interceptAddress]InterceptedService
func (LUT) GetByAddress ¶
func (m LUT) GetByAddress(addr net.Addr) (*InterceptedService, error)
Return the service that is being intercepted at the given address, if any.
func (LUT) GetByName ¶
func (m LUT) GetByName(serviceName string) []InterceptedService
Click to show internal directories.
Click to hide internal directories.