rpc

package
v0.0.0-...-ac9ef1f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(logger *logging.Writer, handler *DHCPHandler, paramDir string)

Types

type ClientJson

type ClientJson struct {
	Name string `json:Name`
	Port int    `json:Port`
}

type DHCPHandler

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

func NewDHCPHandler

func NewDHCPHandler(server *server.DHCPServer, logger *logging.Writer) *DHCPHandler

func (*DHCPHandler) CreateDhcpGlobalConfig

func (h *DHCPHandler) CreateDhcpGlobalConfig(conf *dhcpd.DhcpGlobalConfig) (bool, error)

func (*DHCPHandler) CreateDhcpIntfConfig

func (h *DHCPHandler) CreateDhcpIntfConfig(conf *dhcpd.DhcpIntfConfig) (bool, error)

func (*DHCPHandler) DeleteDhcpGlobalConfig

func (h *DHCPHandler) DeleteDhcpGlobalConfig(conf *dhcpd.DhcpGlobalConfig) (bool, error)

func (*DHCPHandler) DeleteDhcpIntfConfig

func (h *DHCPHandler) DeleteDhcpIntfConfig(conf *dhcpd.DhcpIntfConfig) (bool, error)

func (*DHCPHandler) SendSetDhcpGlobalConfig

func (h *DHCPHandler) SendSetDhcpGlobalConfig(conf *dhcpd.DhcpGlobalConfig) error

func (*DHCPHandler) SendSetDhcpIntfConfig

func (h *DHCPHandler) SendSetDhcpIntfConfig(conf *dhcpd.DhcpIntfConfig) error

func (*DHCPHandler) UpdateDhcpGlobalConfig

func (h *DHCPHandler) UpdateDhcpGlobalConfig(origConf *dhcpd.DhcpGlobalConfig, newConf *dhcpd.DhcpGlobalConfig, attrset []bool, op []*dhcpd.PatchOpInfo) (bool, error)

func (*DHCPHandler) UpdateDhcpIntfConfig

func (h *DHCPHandler) UpdateDhcpIntfConfig(origConf *dhcpd.DhcpIntfConfig, newConf *dhcpd.DhcpIntfConfig, attrset []bool, op []*dhcpd.PatchOpInfo) (bool, error)

Jump to

Keyboard shortcuts

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