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
Click to show internal directories.
Click to hide internal directories.