app

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Settings *Settings
	State    *backend.State
}

func NewApp

func NewApp() *App

func (*App) CreateNewServer

func (a *App) CreateNewServer(b backend.ServerBlueprint) error

func (*App) GenerateWireguardConfig

func (a *App) GenerateWireguardConfig() (string, error)

func (*App) GenerateWireguardConfigLog added in v0.1.4

func (a *App) GenerateWireguardConfigLog()

func (*App) LoadInterface

func (a *App) LoadInterface(ifName string) error

func (*App) RunCli

func (a *App) RunCli()

func (*App) SaveSettings

func (a *App) SaveSettings() error

func (*App) TestDirectories

func (a *App) TestDirectories() string

func (*App) ValidateIfaceArg

func (a *App) ValidateIfaceArg(ifName string) string

type Settings

type Settings struct {
	WireguardDir     string
	DatabaseDir      string
	DefaultInterface string
	ViewerQRMode     bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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