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 *ARPHandler, paramDir string)

Types

type ARPHandler

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

func NewARPHandler

func NewARPHandler(server *server.ARPServer, logger *logging.Writer) *ARPHandler

func (*ARPHandler) CreateArpGlobal

func (h *ARPHandler) CreateArpGlobal(conf *arpd.ArpGlobal) (bool, error)

func (*ARPHandler) DeleteArpGlobal

func (h *ARPHandler) DeleteArpGlobal(conf *arpd.ArpGlobal) (bool, error)

func (*ARPHandler) DeleteResolveArpIPv4

func (h *ARPHandler) DeleteResolveArpIPv4(NextHopIp string) error

func (*ARPHandler) ExecuteActionArpDeleteByIPv4Addr

func (h *ARPHandler) ExecuteActionArpDeleteByIPv4Addr(config *arpd.ArpDeleteByIPv4Addr) (bool, error)

func (*ARPHandler) ExecuteActionArpDeleteByIfName

func (h *ARPHandler) ExecuteActionArpDeleteByIfName(config *arpd.ArpDeleteByIfName) (bool, error)

func (*ARPHandler) ExecuteActionArpRefreshByIPv4Addr

func (h *ARPHandler) ExecuteActionArpRefreshByIPv4Addr(config *arpd.ArpRefreshByIPv4Addr) (bool, error)

func (*ARPHandler) ExecuteActionArpRefreshByIfName

func (h *ARPHandler) ExecuteActionArpRefreshByIfName(config *arpd.ArpRefreshByIfName) (bool, error)

func (*ARPHandler) GetArpEntryState

func (h *ARPHandler) GetArpEntryState(ipAddr string) (*arpd.ArpEntryState, error)

func (*ARPHandler) GetArpLinuxEntryState

func (h *ARPHandler) GetArpLinuxEntryState(ipAddr string) (*arpd.ArpLinuxEntryState, error)

func (*ARPHandler) GetBulkArpEntryState

func (h *ARPHandler) GetBulkArpEntryState(fromIdx arpd.Int, count arpd.Int) (*arpd.ArpEntryStateGetInfo, error)

func (*ARPHandler) GetBulkArpLinuxEntryState

func (h *ARPHandler) GetBulkArpLinuxEntryState(fromIdx arpd.Int, count arpd.Int) (*arpd.ArpLinuxEntryStateGetInfo, error)

func (*ARPHandler) ResolveArpIPV4

func (h *ARPHandler) ResolveArpIPV4(targetIp string, ifId arpdInt.Int) error

func (*ARPHandler) SendDeleteResolveArpIPv4

func (h *ARPHandler) SendDeleteResolveArpIPv4(NextHopIp string)

func (*ARPHandler) SendResolveArpIPv4

func (h *ARPHandler) SendResolveArpIPv4(targetIp string, ifId arpdInt.Int)

func (*ARPHandler) SendSetArpGlobalConfig

func (h *ARPHandler) SendSetArpGlobalConfig(refTimeout int) error

func (*ARPHandler) SendUpdateArpGlobalConfig

func (h *ARPHandler) SendUpdateArpGlobalConfig(timeout int) error

func (*ARPHandler) UpdateArpGlobal

func (h *ARPHandler) UpdateArpGlobal(origConf *arpd.ArpGlobal, newConf *arpd.ArpGlobal, attrset []bool, op []*arpd.PatchOpInfo) (bool, error)

type ClientJson

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

Jump to

Keyboard shortcuts

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