Documentation
¶
Overview ¶
Package handler holds the interface that backends implement, handlers take in, and the top level dhcp package passes to handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendReader ¶
type BackendReader interface {
// Read data (from a backend) based on a mac address
// and return DHCP headers and options, including netboot info.
GetByMac(context.Context, net.HardwareAddr) (*data.DHCP, *data.Netboot, error)
GetByIP(context.Context, net.IP) (*data.DHCP, *data.Netboot, error)
}
BackendReader is the interface for getting data from a backend.
Backends implement this interface to provide DHCP and Netboot data to the handlers.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package proxy implements a DHCP handler that provides proxyDHCP functionality.
|
Package proxy implements a DHCP handler that provides proxyDHCP functionality. |
|
Package noop is a backend handler that does nothing.
|
Package noop is a backend handler that does nothing. |
Click to show internal directories.
Click to hide internal directories.