Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsirysndr/go-connect
Go library for configuring Linux connection (requires connman & dbus)
https://github.com/tsirysndr/go-connect
dbus golang linux networkmanager raspberry-pi
Last synced: about 2 months ago
JSON representation
Go library for configuring Linux connection (requires connman & dbus)
- Host: GitHub
- URL: https://github.com/tsirysndr/go-connect
- Owner: tsirysndr
- License: mit
- Created: 2020-01-08T19:05:45.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-14T05:47:02.000Z (about 5 years ago)
- Last Synced: 2024-11-14T00:07:21.500Z (2 months ago)
- Topics: dbus, golang, linux, networkmanager, raspberry-pi
- Language: Go
- Size: 23.4 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Welcome to go-connect 👋
🚧 Work in Progress
> Go library for configuring Linux connection (requires connman & dbus)
## 🚚 Install
```sh
go get github.com/tsirysndr/go-connect
```## 🚀 Usage
Import the package into your project.
```Go
import "github.com/tsirynsdr/go-connect"
```Construct a new connection manager, then use the various services on the client to access different parts of the Connman dbus API. For example:
```Go
c := connect.NewConnectionManager()
c.Wifi.Scan()
res, _ := c.Wifi.GetNetworks()
r, _ := json.Marshal(res)
fmt.Println(string(r))
```## Author
👤 **Tsiry Sandratraina**
* Twitter: [@tsiry_sndr](https://twitter.com/tsiry_sndr)
* Github: [@tsirysndr](https://github.com/tsirysndr)## Show your support
Give a ⭐️ if this project helped you!