Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppCallback ¶
type AppCallback interface {
Hostname() string
LanIp() string
MacAddress() string
Exit(error string)
}
AppCallback provides access to app instance.
type Controller ¶
type Controller struct {
AppCallback AppCallback
Config cli.AppConfig
// contains filtered or unexported fields
}
Controller holds global state
func NewController ¶
func NewController(appCallback AppCallback) *Controller
NewController provides reference to global state to be managed by android vpn service and iOS network extension. reference is not safe for concurrent use.
func (*Controller) IsRunning ¶
func (c *Controller) IsRunning() bool
func (*Controller) Start ¶
func (c *Controller) Start(CdUID string, ProvisionID string, CustomHostname string, HomeDir string, UpstreamProto string, logLevel int, logPath string)
Start configures utility with config.toml from provided directory. This function will block until Stop is called Check port availability prior to calling it.
Click to show internal directories.
Click to hide internal directories.