Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { Interface ClientInterface Peer ClientPeer }
type ClientInterface ¶
type ClientPeer ¶
type ConfigManager ¶
type ConfigManager struct { ConfigFilePath string Hostname string DNS string InterfaceName string ProcessManager ProcessManagerInterface }
func (*ConfigManager) AddPeer ¶
func (c *ConfigManager) AddPeer(publicKey string, name string) error
func (*ConfigManager) GetClientConfig ¶
func (c *ConfigManager) GetClientConfig(publicKey string) (*ClientConfig, string, error)
func (*ConfigManager) ListPeers ¶
func (c *ConfigManager) ListPeers() ([]Peer, error)
func (*ConfigManager) RemovePeer ¶
func (c *ConfigManager) RemovePeer(publicKey string) error
type ProcessManager ¶
type ProcessManager struct {
InterfaceName string
}
func (*ProcessManager) ReloadConfig ¶
func (pm *ProcessManager) ReloadConfig() error
type ProcessManagerInterface ¶
type ProcessManagerInterface interface {
ReloadConfig() error
}
type ProcessManagerStub ¶
type ProcessManagerStub struct{}
func (*ProcessManagerStub) ReloadConfig ¶
func (pm *ProcessManagerStub) ReloadConfig() error
Click to show internal directories.
Click to hide internal directories.