localrpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SocketPath = "/var/run/rhyzome/localrpc.sock"
)

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe() error

ListenAndServe creates a listener on the unix socket and starts the server in a goroutine

func Shutdown

func Shutdown() error

Shutdown shuts down the server

Types

type DHCPAction

type DHCPAction string
const (
	DHCPActionAdd    DHCPAction = "add"
	DHCPActionUpdate DHCPAction = "update"
)

type DHCPScriptCallback

type DHCPScriptCallback struct {
	Action   DHCPAction
	MACAddr  string
	IPAddr   string
	Hostname string
}

type DHCPScriptServer

type DHCPScriptServer int

func (*DHCPScriptServer) Call

func (d *DHCPScriptServer) Call(args *DHCPScriptCallback, reply *int) error

Jump to

Keyboard shortcuts

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