mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
23 lines
510 B
Go
23 lines
510 B
Go
package ctrld
|
|
|
|
// ClientInfoCtxKey is the context key to store client info.
|
|
type ClientInfoCtxKey struct{}
|
|
|
|
// ClientInfo represents ctrld's clients information.
|
|
type ClientInfo struct {
|
|
Mac string
|
|
IP string
|
|
Hostname string
|
|
Self bool
|
|
ClientIDPref string
|
|
}
|
|
|
|
// LeaseFileFormat specifies the format of DHCP lease file.
|
|
type LeaseFileFormat string
|
|
|
|
const (
|
|
Dnsmasq LeaseFileFormat = "dnsmasq"
|
|
IscDhcpd LeaseFileFormat = "isc-dhcpd"
|
|
KeaDHCP4 LeaseFileFormat = "kea-dhcp4"
|
|
)
|