Documentation ¶
Index ¶
- func NewInterceptAddress(service *entities.Service, protocol string, resolver dns.Resolver) (*interceptAddress, error)
- func ServicePoller(context ziti.Context, interceptor Interceptor, resolver dns.Resolver, ...)
- func SetDnsInterceptIpRange(cidr string) error
- type InterceptedService
- type Interceptor
- type LUT
- type Protocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInterceptAddress ¶
func ServicePoller ¶
func SetDnsInterceptIpRange ¶ added in v0.16.45
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.