Documentation
¶
Index ¶
- type App
- func (a *App) AddHost(address, description string) (*entity.Host, error)
- func (a *App) AddNetwork(name string) (*entity.Network, error)
- func (a *App) AddNetworkHost(networkID uint64, address, description string) (*entity.NetworkHost, error)
- func (a *App) CreateMenu() *menu.Menu
- func (a *App) DeleteHost(id uint64) error
- func (a *App) DeleteNetwork(id uint64) error
- func (a *App) DeleteNetworkHost(id uint64) error
- func (a *App) ExportNetworkHosts(networkID uint64) (string, error)
- func (a *App) ImportNetworkHosts(networkID uint64, jsonData string) error
- func (a *App) ListHosts(search string) ([]*entity.Host, error)
- func (a *App) ListNetworkHosts(networkID uint64, searchTerm string) ([]*entity.NetworkHost, error)
- func (a *App) ListNetworks(searchTerm string) ([]*entity.NetworkWithStatus, error)
- func (a *App) ListVPNServices() ([]entity.VPNService, error)
- func (a *App) OnBeforeClose(_ context.Context) bool
- func (a *App) OnStartup(ctx context.Context)
- func (a *App) ResetNetworkHostSetup(networkID uint64) error
- func (a *App) SaveFileWithDialog(filename, data string) (string, error)
- func (a *App) SyncNetworkHostSetup(networkID uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func New ¶
func New( appName, appVersion, authorName, authorEmail string, db *database.Database, wailsLogger *logging.WailsAdapter, commandUC usecase.CommandExecutor, hostUC usecase.Host, networkUC usecase.Network, networkHostUC usecase.NetworkHost, networkHostSetupUC usecase.NetworkHostSetup, updateUC usecase.Update, ) *App
func (*App) AddNetwork ¶
AddNetwork adds a new network.
func (*App) AddNetworkHost ¶
func (a *App) AddNetworkHost(networkID uint64, address, description string) (*entity.NetworkHost, error)
AddNetworkHost adds a host to a network.
func (*App) CreateMenu ¶
CreateMenu creates the macOS application menu.
func (*App) DeleteNetwork ¶
DeleteNetwork deletes a network by ID.
func (*App) DeleteNetworkHost ¶
DeleteNetworkHost removes a host from a network.
func (*App) ExportNetworkHosts ¶
ExportNetworkHosts exports network hosts to JSON without network ID (for context-specific export).
func (*App) ImportNetworkHosts ¶
ImportNetworkHosts imports network hosts from JSON (supports both old and new formats).
func (*App) ListNetworkHosts ¶
ListNetworkHosts returns hosts for a network.
func (*App) ListNetworks ¶
func (a *App) ListNetworks(searchTerm string) ([]*entity.NetworkWithStatus, error)
ListNetworks returns networks with their active status.
func (*App) ListVPNServices ¶
func (a *App) ListVPNServices() ([]entity.VPNService, error)
ListVPNServices returns available VPN services.
func (*App) ResetNetworkHostSetup ¶
ResetNetworkHostSetup resets additional routes for a network.
func (*App) SaveFileWithDialog ¶
func (*App) SyncNetworkHostSetup ¶
SyncNetworkHostSetup synchronizes network host setup.