mirror of
https://github.com/fosrl/olm.git
synced 2026-03-02 00:36:44 +00:00
Add functions to access network
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/fosrl/newt/logger"
|
||||
"github.com/fosrl/olm/network"
|
||||
"github.com/fosrl/olm/websocket"
|
||||
)
|
||||
|
||||
@@ -74,3 +75,11 @@ func keepSendingPing(olm *websocket.Client) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func GetNetworkSettingsJSON() (string, error) {
|
||||
return network.GetJSON()
|
||||
}
|
||||
|
||||
func GetNetworkSettingsIncrementor() int {
|
||||
return network.GetIncrementor()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user