Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogAll int = iota LogDebug LogInfo LogError LogFatal )
View Source
const ( ManagerGetProperties = "net.connman.Manager.GetProperties" ManagerSetProperty = "net.connman.Manager.SetProperty" ManagerGetTechnologies = "net.connman.Manager.GetTechnologies" ManagerGetServices = "net.connman.Manager.GetServices" )
View Source
const ( ServiceGetProperties = "net.connman.Service.GetProperties" ServiceSetProperty = "net.connman.Service.SetProperty" ServiceConnect = "net.connman.Service.Connect" ServiceDisconnect = "net.connman.Service.Disconnect" )
View Source
const ( TechnologyGetProperties = "net.connman.Technology.GetProperties" TechnologySetProperty = "net.connman.Technology.SetProperty" TechnologyScan = "net.connman.Technology.Scan" )
Variables ¶
View Source
var ( LogLevel int = LogError DisabledTechnologies []string = []string{} )
Functions ¶
func AddDisabledTechnology ¶
func AddDisabledTechnology(typ string)
Types ¶
type Manager ¶
type Manager struct { State string OfflineMode bool Technologies []techList Services []servList WiFiName string // contains filtered or unexported fields }
func NewManager ¶
func (*Manager) GetProperties ¶
func (*Manager) GetServiceId ¶
func (*Manager) GetServices ¶
func (*Manager) GetTechnologies ¶
type Service ¶
type Service struct { Type string Name string Id string State string AutoConnect bool Nameservers []string Timeservers []string Domains []string IPv4 ipv4 IPv6 ipv6 Security []string // contains filtered or unexported fields }
func NewService ¶
func (*Service) Disconnect ¶
func (*Service) GetProperties ¶
func (*Service) SetAutoConnect ¶
type Technology ¶
type Technology struct { Type string Name string Powered bool Tethering bool TetheringIdentifier string TetheringPassphrase string // contains filtered or unexported fields }
func NewTechnology ¶
func NewTechnology(ty string) (*Technology, error)
func (*Technology) GetProperties ¶
func (t *Technology) GetProperties() error
func (*Technology) Scan ¶
func (t *Technology) Scan() error
func (*Technology) SetPowered ¶
func (t *Technology) SetPowered(power bool) error
func (*Technology) SetTethering ¶
func (t *Technology) SetTethering(tether bool) error
func (*Technology) SetTetheringParameters ¶
func (t *Technology) SetTetheringParameters(id string, pwd string) error
Click to show internal directories.
Click to hide internal directories.