Documentation ¶
Index ¶
- type Client
- type DeviceRPCRequest
- func (d *DeviceRPCRequest) Blacklist(mac net.HardwareAddr) error
- func (d *DeviceRPCRequest) Delete(mac net.HardwareAddr) error
- func (d *DeviceRPCRequest) Get(mac net.HardwareAddr) (*models.Device, error)
- func (d *DeviceRPCRequest) Register(mac net.HardwareAddr) error
- func (d *DeviceRPCRequest) RemoveBlacklist(mac net.HardwareAddr) error
- func (d *DeviceRPCRequest) Unregister(mac net.HardwareAddr) error
- type DeviceRequest
- type LeaseRPCRequest
- type LeaseRequest
- type NetworkRPCRequest
- type NetworkRequest
- type RPCClient
- type ServerRPCRequest
- type ServerRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Close() error Device() DeviceRequest Lease() LeaseRequest Network() NetworkRequest Server() ServerRequest }
type DeviceRPCRequest ¶
type DeviceRPCRequest struct {
// contains filtered or unexported fields
}
func (*DeviceRPCRequest) Blacklist ¶
func (d *DeviceRPCRequest) Blacklist(mac net.HardwareAddr) error
func (*DeviceRPCRequest) Delete ¶
func (d *DeviceRPCRequest) Delete(mac net.HardwareAddr) error
func (*DeviceRPCRequest) Get ¶
func (d *DeviceRPCRequest) Get(mac net.HardwareAddr) (*models.Device, error)
func (*DeviceRPCRequest) Register ¶
func (d *DeviceRPCRequest) Register(mac net.HardwareAddr) error
func (*DeviceRPCRequest) RemoveBlacklist ¶
func (d *DeviceRPCRequest) RemoveBlacklist(mac net.HardwareAddr) error
func (*DeviceRPCRequest) Unregister ¶
func (d *DeviceRPCRequest) Unregister(mac net.HardwareAddr) error
type DeviceRequest ¶
type DeviceRequest interface { Get(mac net.HardwareAddr) (*models.Device, error) Register(mac net.HardwareAddr) error Unregister(mac net.HardwareAddr) error Blacklist(mac net.HardwareAddr) error RemoveBlacklist(mac net.HardwareAddr) error Delete(mac net.HardwareAddr) error }
type LeaseRPCRequest ¶
type LeaseRPCRequest struct {
// contains filtered or unexported fields
}
func (*LeaseRPCRequest) GetAllFromNetwork ¶
func (l *LeaseRPCRequest) GetAllFromNetwork(name string) ([]*models.Lease, error)
type LeaseRequest ¶
type NetworkRPCRequest ¶
type NetworkRPCRequest struct {
// contains filtered or unexported fields
}
func (*NetworkRPCRequest) GetNameList ¶
func (n *NetworkRPCRequest) GetNameList() ([]string, error)
type NetworkRequest ¶
type RPCClient ¶
type RPCClient struct {
// contains filtered or unexported fields
}
Client is an RPC client connection to the managed DHCP server
func (*RPCClient) Device ¶
func (c *RPCClient) Device() DeviceRequest
Device creates a new request to the Device service.
func (*RPCClient) Lease ¶
func (c *RPCClient) Lease() LeaseRequest
Lease creates a new request to the Lease service.
func (*RPCClient) Network ¶
func (c *RPCClient) Network() NetworkRequest
Network creates a new request to the Network service.
func (*RPCClient) Server ¶
func (c *RPCClient) Server() ServerRequest
Server creates a new request to the Server service.
type ServerRPCRequest ¶
type ServerRPCRequest struct {
// contains filtered or unexported fields
}
func (*ServerRPCRequest) GetPoolStats ¶
func (s *ServerRPCRequest) GetPoolStats() ([]*stats.PoolStat, error)
type ServerRequest ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.