Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

Awesome Lists containing this project

README

        

Welcome to go-connect 👋


🚧 Work in Progress






GitHub code size in bytes
GitHub go.mod Go version

GitHub contributors


License: MIT

> 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!