Documentation ¶
Index ¶
- Constants
- func ConnectWiFi(ctx context.Context, conn *dbus.Conn, request *dev.WiFiConnectRequest) error
- func StartHotspot(ctx context.Context, conn *dbus.Conn, hotspotSSID string, ...) error
- func WifiScan(ctx context.Context, conn *dbus.Conn, networkInterfaceName string) ([]*dev.WiFiAccessPoint, error)
- type ConnectivityServer
- type TimeServer
- func (t *TimeServer) GetCurrentTime(ctx context.Context, c *connect.Request[dev.GetCurrentTimeRequest]) (*connect.Response[dev.GetCurrentTimeResponse], error)
- func (t *TimeServer) GetTimezones(ctx context.Context, c *connect.Request[dev.GetTimezonesRequest]) (*connect.Response[dev.GetTimezonesResponse], error)
- func (t *TimeServer) SetCurrentTime(ctx context.Context, c *connect.Request[dev.SetCurrentTimeRequest]) (*connect.Response[dev.SetCurrentTimeResponse], error)
- func (t *TimeServer) SetTimezone(ctx context.Context, c *connect.Request[dev.SetTimezoneRequest]) (*connect.Response[dev.SetTimezoneResponse], error)
Constants ¶
View Source
const ( NM_802_11_AP_SEC_NONE = 0x0000 NM_802_11_AP_SEC_PAIR_WEP40 = 0x0001 // WEP (40-bit) NM_802_11_AP_SEC_PAIR_WEP104 = 0x0002 // WEP (104-bit) NM_802_11_AP_SEC_PAIR_TKIP = 0x0004 // TKIP encryption NM_802_11_AP_SEC_PAIR_CCMP = 0x0008 // CCMP encryption NM_802_11_AP_SEC_GROUP_WEP40 = 0x0010 // WEP (40-bit) NM_802_11_AP_SEC_GROUP_WEP104 = 0x0020 // WEP (104-bit) NM_802_11_AP_SEC_GROUP_TKIP = 0x0040 // Group TKIP NM_802_11_AP_SEC_GROUP_CCMP = 0x0080 // Group CCMP NM_802_11_AP_SEC_KEY_MGMT_PSK = 0x0100 // Pre-shared key NM_802_11_AP_SEC_KEY_MGMT_802_1X = 0x0200 // 802.1X )
NM_802_11_AP_SEC flags (for WpaFlags and RsnFlags)
Variables ¶
This section is empty.
Functions ¶
func ConnectWiFi ¶
func ConnectWiFi(ctx context.Context, conn *dbus.Conn, request *dev.WiFiConnectRequest) error
func StartHotspot ¶
Types ¶
type ConnectivityServer ¶
type ConnectivityServer struct{}
func NewConnectivityServer ¶
func NewConnectivityServer() *ConnectivityServer
func (*ConnectivityServer) InternetConnectivityCheck ¶
func (s *ConnectivityServer) InternetConnectivityCheck(baseCtx context.Context, c *connect.Request[dev.InternetConnectivityCheckRequest]) (*connect.Response[dev.InternetConnectivityCheckResponse], error)
type TimeServer ¶
type TimeServer struct {
// contains filtered or unexported fields
}
func NewTimeServer ¶
func NewTimeServer(dbus *dbus.Conn) *TimeServer
func (*TimeServer) GetCurrentTime ¶
func (t *TimeServer) GetCurrentTime(ctx context.Context, c *connect.Request[dev.GetCurrentTimeRequest]) (*connect.Response[dev.GetCurrentTimeResponse], error)
func (*TimeServer) GetTimezones ¶
func (t *TimeServer) GetTimezones(ctx context.Context, c *connect.Request[dev.GetTimezonesRequest]) (*connect.Response[dev.GetTimezonesResponse], error)
func (*TimeServer) SetCurrentTime ¶
func (t *TimeServer) SetCurrentTime(ctx context.Context, c *connect.Request[dev.SetCurrentTimeRequest]) (*connect.Response[dev.SetCurrentTimeResponse], error)
func (*TimeServer) SetTimezone ¶
func (t *TimeServer) SetTimezone(ctx context.Context, c *connect.Request[dev.SetTimezoneRequest]) (*connect.Response[dev.SetTimezoneResponse], error)
Click to show internal directories.
Click to hide internal directories.