Documentation ¶
Index ¶
- type Interceptor
- func (i *Interceptor) Delete(table string) bool
- func (i *Interceptor) Destination(conn *net.TCPConn) (string, error)
- func (i *Interceptor) GetSearchPath() []string
- func (i *Interceptor) Render(table string) string
- func (i *Interceptor) Resolve(query string) *rt.Route
- func (i *Interceptor) SetSearchPath(paths []string)
- func (i *Interceptor) Update(table rt.Table)
- func (i *Interceptor) Work(p *supervisor.Process) error
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
Click to show internal directories.
Click to hide internal directories.