interceptor

package
v1.7.3-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interceptor

type Interceptor struct {
	// contains filtered or unexported fields
}

func NewInterceptor

func NewInterceptor(name string) *Interceptor

func (*Interceptor) Delete

func (i *Interceptor) Delete(table string) bool

func (*Interceptor) Destination

func (i *Interceptor) Destination(conn *net.TCPConn) (string, error)

func (*Interceptor) GetSearchPath

func (i *Interceptor) GetSearchPath() []string

GetSearchPath retrieves the current search path

func (*Interceptor) Render

func (i *Interceptor) Render(table string) string

func (*Interceptor) Resolve

func (i *Interceptor) Resolve(query string) *rt.Route

Resolve looks up the given query in the (FIXME: somewhere), trying all the suffixes in the search path, and returns a Route on success or nil on failure. This implementation does not count the number of dots in the query.

func (*Interceptor) SetSearchPath

func (i *Interceptor) SetSearchPath(paths []string)

SetSearchPath updates the DNS search path used by the resolver

func (*Interceptor) Update

func (i *Interceptor) Update(table rt.Table)

func (*Interceptor) Work

func (i *Interceptor) Work(p *supervisor.Process) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL