mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 07:58:51 +01:00
update code with latest muka/go-bluetooth ,add go mod
This commit is contained in:
parent
a481890304
commit
8db027c60f
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
//"os"
|
//"os"
|
||||||
//"log"
|
//"log"
|
||||||
"strings"
|
//"strings"
|
||||||
|
|
||||||
//"github.com/fatih/structs"
|
//"github.com/fatih/structs"
|
||||||
/*
|
/*
|
||||||
@ -18,128 +18,20 @@ import (
|
|||||||
*/
|
*/
|
||||||
"github.com/cuu/gogame/time"
|
"github.com/cuu/gogame/time"
|
||||||
"github.com/cuu/gogame/event"
|
"github.com/cuu/gogame/event"
|
||||||
"github.com/godbus/dbus"
|
//"github.com/godbus/dbus"
|
||||||
"github.com/muka/go-bluetooth/api"
|
//"github.com/muka/go-bluetooth/api"
|
||||||
//"github.com/muka/go-bluetooth/bluez"
|
//"github.com/muka/go-bluetooth/bluez"
|
||||||
"github.com/muka/go-bluetooth/bluez/profile"
|
//"github.com/muka/go-bluetooth/bluez/profile"
|
||||||
|
"github.com/muka/go-bluetooth/bluez/profile/device"
|
||||||
"github.com/clockworkpi/LauncherGoDev/sysgo/UI"
|
"github.com/clockworkpi/LauncherGoDev/sysgo/UI"
|
||||||
)
|
)
|
||||||
|
|
||||||
func set_trusted(path string) {
|
|
||||||
devices ,err := api.GetDevices()
|
|
||||||
if err != nil {
|
|
||||||
fmt.Println(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
for i,v := range devices {
|
|
||||||
fmt.Println(i, v.Path)
|
|
||||||
if strings.Contains(v.Path,path) {
|
|
||||||
fmt.Println("Found device")
|
|
||||||
dev1,_ := v.GetClient()
|
|
||||||
err:=dev1.SetProperty("Trusted",true)
|
|
||||||
if err != nil {
|
|
||||||
fmt.Println(err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
type Agent struct{
|
|
||||||
BusName string
|
|
||||||
AgentInterface string
|
|
||||||
AgentPath string
|
|
||||||
Leader *BluetoothPlugin
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *Agent) Release() *dbus.Error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *Agent) RequestPinCode(device dbus.ObjectPath) (pincode string, err *dbus.Error) {
|
|
||||||
fmt.Println("RequestPinCode",device)
|
|
||||||
set_trusted(string(device))
|
|
||||||
return "0000",nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *Agent) DisplayPinCode(device dbus.ObjectPath, pincode string) *dbus.Error {
|
|
||||||
fmt.Println( fmt.Sprintf("DisplayPinCode (%s, %s)" ,device, pincode))
|
|
||||||
self.Leader.PairPage.ShowPinCode(string(device),pincode)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *Agent) RequestPasskey(device dbus.ObjectPath) (passkey uint32, err *dbus.Error) {
|
|
||||||
set_trusted(string(device))
|
|
||||||
return 0,nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *Agent) DisplayPasskey(device dbus.ObjectPath, passkey uint32, entered uint16) *dbus.Error {
|
|
||||||
fmt.Println(fmt.Sprintf("DisplayPasskey %s, %06u entered %u" ,device, passkey, entered))
|
|
||||||
self.Leader.PairPage.ShowPassKey(string(device),passkey,entered)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
func (self *Agent) RequestConfirmation(device dbus.ObjectPath, passkey uint32) *dbus.Error {
|
|
||||||
fmt.Println(fmt.Sprintf("RequestConfirmation (%s, %06d)", device, passkey))
|
|
||||||
set_trusted(string(device))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
func (self *Agent) RequestAuthorization(device dbus.ObjectPath) *dbus.Error {
|
|
||||||
fmt.Printf("RequestAuthorization (%s)\n" ,device)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *Agent) AuthorizeService(device dbus.ObjectPath, uuid string) *dbus.Error {
|
|
||||||
fmt.Printf("AuthorizeService (%s, %s)",device, uuid) //directly authrized
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *Agent) Cancel() *dbus.Error {
|
|
||||||
fmt.Println("Cancel")
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *Agent) RegistrationPath() string {
|
|
||||||
return self.AgentPath
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *Agent) InterfacePath() string {
|
|
||||||
return self.AgentInterface
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterAgent(agent profile.Agent1Interface, caps string) (err error) {
|
|
||||||
//agent_path := AgentDefaultRegisterPath // we use the default path
|
|
||||||
agent_path := agent.RegistrationPath() // we use the default path
|
|
||||||
fmt.Println("The Agent Path: ", agent_path)
|
|
||||||
// Register agent
|
|
||||||
am := profile.NewAgentManager1(agent_path)
|
|
||||||
|
|
||||||
// Export the Go interface to DBus
|
|
||||||
err = am.ExportGoAgentToDBus(agent)
|
|
||||||
if err != nil { return err }
|
|
||||||
|
|
||||||
// Register the exported interface as application agent via AgenManager API
|
|
||||||
err = am.RegisterAgent(agent_path, caps)
|
|
||||||
if err != nil { return err }
|
|
||||||
|
|
||||||
// Set the new application agent as Default Agent
|
|
||||||
err = am.RequestDefaultAgent(agent_path)
|
|
||||||
if err != nil { return err }
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
type BleAgentPairPage struct {
|
type BleAgentPairPage struct {
|
||||||
UI.Page
|
UI.Page
|
||||||
|
|
||||||
Pin string
|
Pin string
|
||||||
Pass string
|
Pass string
|
||||||
DevObj *api.Device
|
DevObj *device.Device1
|
||||||
Leader *BluetoothPlugin
|
Leader *BluetoothPlugin
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,12 +138,11 @@ func (self *BleAgentPairPage) KeyDown(ev *event.Event) {
|
|||||||
|
|
||||||
if ev.Data["Key"] == UI.CurKeys["A"] || ev.Data["Key"] == UI.CurKeys["Menu"] {
|
if ev.Data["Key"] == UI.CurKeys["A"] || ev.Data["Key"] == UI.CurKeys["Menu"] {
|
||||||
if self.DevObj != nil {
|
if self.DevObj != nil {
|
||||||
c, err := self.DevObj.GetClient()
|
err := self.DevObj.CancelPairing()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
c.CancelPairing()
|
|
||||||
}
|
}
|
||||||
self.ReturnToUpLevelPage()
|
self.ReturnToUpLevelPage()
|
||||||
self.Screen.Draw()
|
self.Screen.Draw()
|
||||||
@ -5,7 +5,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"log"
|
"log"
|
||||||
"strings"
|
"strings"
|
||||||
"errors"
|
//"errors"
|
||||||
"github.com/fatih/structs"
|
"github.com/fatih/structs"
|
||||||
|
|
||||||
"github.com/veandco/go-sdl2/ttf"
|
"github.com/veandco/go-sdl2/ttf"
|
||||||
@ -18,24 +18,25 @@ import (
|
|||||||
"github.com/cuu/gogame/color"
|
"github.com/cuu/gogame/color"
|
||||||
"github.com/cuu/gogame/font"
|
"github.com/cuu/gogame/font"
|
||||||
|
|
||||||
"github.com/godbus/dbus"
|
//"github.com/godbus/dbus"
|
||||||
bleapi "github.com/muka/go-bluetooth/api"
|
bleapi "github.com/muka/go-bluetooth/api"
|
||||||
"github.com/muka/go-bluetooth/bluez"
|
//"github.com/muka/go-bluetooth/bluez"
|
||||||
"github.com/muka/go-bluetooth/bluez/profile"
|
// "github.com/muka/go-bluetooth/bluez/profile"
|
||||||
|
"github.com/muka/go-bluetooth/bluez/profile/device"
|
||||||
|
|
||||||
"github.com/clockworkpi/LauncherGoDev/sysgo/UI"
|
"github.com/clockworkpi/LauncherGoDev/sysgo/UI"
|
||||||
)
|
)
|
||||||
|
|
||||||
func showDeviceInfo(dev *bleapi.Device) {
|
func showDeviceInfo(dev *device.Device1) {
|
||||||
if dev == nil {
|
if dev == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
props, err := dev.GetProperties()
|
props, err := dev.GetProperties()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("%s: Failed to get properties: %s\n", dev.Path, err.Error())
|
fmt.Printf("%s: Failed to get properties: %s\n", dev.Path, err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Printf("name=%s addr=%s rssi=%d\n", props.Name, props.Address, props.RSSI)
|
fmt.Printf("name=%s addr=%s rssi=%d\n", props.Name, props.Address, props.RSSI)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -60,11 +61,11 @@ func NewBleForgetConfirmPage() *BleForgetConfirmPage {
|
|||||||
|
|
||||||
func (self *BleForgetConfirmPage) KeyDown(ev *event.Event) {
|
func (self *BleForgetConfirmPage) KeyDown(ev *event.Event) {
|
||||||
|
|
||||||
if ev.Data["Key"] == UI.CurKeys["A"] || ev.Data["Key"] == UI.CurKeys["Menu"] {
|
if ev.Data["Key"] == UI.CurKeys["A"] || ev.Data["Key"] == UI.CurKeys["Menu"] {
|
||||||
self.ReturnToUpLevelPage()
|
self.ReturnToUpLevelPage()
|
||||||
self.Screen.Draw()
|
self.Screen.Draw()
|
||||||
self.Screen.SwapAndShow()
|
self.Screen.SwapAndShow()
|
||||||
}
|
}
|
||||||
|
|
||||||
if ev.Data["Key"] == UI.CurKeys["B"] {
|
if ev.Data["Key"] == UI.CurKeys["B"] {
|
||||||
self.SnapMsg("Deleting")
|
self.SnapMsg("Deleting")
|
||||||
@ -73,9 +74,9 @@ func (self *BleForgetConfirmPage) KeyDown(ev *event.Event) {
|
|||||||
|
|
||||||
|
|
||||||
time.BlockDelay(400)
|
time.BlockDelay(400)
|
||||||
self.ReturnToUpLevelPage()
|
self.ReturnToUpLevelPage()
|
||||||
self.Screen.Draw()
|
self.Screen.Draw()
|
||||||
self.Screen.SwapAndShow()
|
self.Screen.SwapAndShow()
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -133,8 +134,8 @@ type BleInfoPage struct {
|
|||||||
|
|
||||||
Scroller *UI.ListScroller
|
Scroller *UI.ListScroller
|
||||||
ConfirmPage1 *BleForgetConfirmPage
|
ConfirmPage1 *BleForgetConfirmPage
|
||||||
MyDevice *bleapi.Device // from NetItem-> from BluetoothPage
|
MyDevice *device.Device1 // from NetItem-> from BluetoothPage
|
||||||
Props *profile.Device1Properties
|
Props *device.Device1Properties
|
||||||
Path string
|
Path string
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,7 +314,7 @@ func (self *BleInfoPage) TryToForget() {
|
|||||||
self.Screen.SwapAndShow()
|
self.Screen.SwapAndShow()
|
||||||
|
|
||||||
|
|
||||||
err = adapter.RemoveDevice(self.Path)
|
err = adapter.RemoveDevice(self.MyDevice.Path())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("BleInfoPage TryToForget: ",err)
|
fmt.Println("BleInfoPage TryToForget: ",err)
|
||||||
}
|
}
|
||||||
@ -333,7 +334,9 @@ func (self *BleInfoPage) TryToForget() {
|
|||||||
|
|
||||||
func (self *BleInfoPage) TryToDisconnect() {
|
func (self *BleInfoPage) TryToDisconnect() {
|
||||||
|
|
||||||
if self.MyDevice.IsConnected() {
|
is_connected,_ := self.MyDevice.GetConnected();
|
||||||
|
|
||||||
|
if is_connected {
|
||||||
|
|
||||||
self.Screen.FootBar.UpdateNavText("Disconnecting")
|
self.Screen.FootBar.UpdateNavText("Disconnecting")
|
||||||
self.Screen.MsgBox.SetText("Disconnecting")
|
self.Screen.MsgBox.SetText("Disconnecting")
|
||||||
@ -478,7 +481,7 @@ func (self *BleListMessageBox) Draw() {
|
|||||||
type BluetoothPage struct{
|
type BluetoothPage struct{
|
||||||
UI.Page
|
UI.Page
|
||||||
|
|
||||||
Devices []bleapi.Device
|
Devices []*device.Device1
|
||||||
|
|
||||||
BlePassword string
|
BlePassword string
|
||||||
Connecting bool
|
Connecting bool
|
||||||
@ -612,7 +615,7 @@ func (self *BluetoothPage) TryConnect() {
|
|||||||
}
|
}
|
||||||
if strings.Contains(s,"NoReply") {
|
if strings.Contains(s,"NoReply") {
|
||||||
err_msg = "NoReply,Cancelling"
|
err_msg = "NoReply,Cancelling"
|
||||||
dev1,_ := cur_li.(*NetItem).Device.GetClient()
|
dev1 := cur_li.(*NetItem).Device
|
||||||
dev1.CancelPairing()
|
dev1.CancelPairing()
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -620,7 +623,7 @@ func (self *BluetoothPage) TryConnect() {
|
|||||||
err_msg = "Already Exists"
|
err_msg = "Already Exists"
|
||||||
adapter,err := bleapi.GetAdapter(adapterID)
|
adapter,err := bleapi.GetAdapter(adapterID)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
err = adapter.RemoveDevice(cur_li.(*NetItem).Path)
|
err = adapter.RemoveDevice(cur_li.(*NetItem).Device.Path())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
@ -634,10 +637,10 @@ func (self *BluetoothPage) TryConnect() {
|
|||||||
|
|
||||||
}else{
|
}else{
|
||||||
self.Leader.PairPage.PairOKCb()
|
self.Leader.PairPage.PairOKCb()
|
||||||
dev1,_ := cur_li.(*NetItem).Device.GetClient()
|
dev1 := cur_li.(*NetItem).Device
|
||||||
err = dev1.SetProperty("Trusted",true)
|
err = dev1.SetTrusted(true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
cur_li.(*NetItem).Device.Connect()
|
cur_li.(*NetItem).Device.Connect()
|
||||||
}
|
}
|
||||||
@ -647,38 +650,15 @@ func (self *BluetoothPage) TryConnect() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//GetDevices returns a list of bluetooth discovered Devices
|
//GetDevices returns a list of bluetooth discovered Devices
|
||||||
func (self *BluetoothPage) GetDevices() ([]bleapi.Device, error) {
|
func (self *BluetoothPage) GetDevices() ([]*device.Device1, error) {
|
||||||
|
|
||||||
manager, err := bleapi.GetManager()
|
adapter,err := bleapi.GetAdapter(adapterID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil,err
|
||||||
}
|
}
|
||||||
|
|
||||||
manager.LoadObjects()
|
list, err := adapter.GetDevices()
|
||||||
|
return list,err
|
||||||
list, err := bleapi.GetDeviceList()
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
objects := manager.GetObjects()
|
|
||||||
|
|
||||||
var devices = make([]bleapi.Device, 0)
|
|
||||||
|
|
||||||
for _, path := range list {
|
|
||||||
object, ok := objects.Load(path)
|
|
||||||
if !ok {
|
|
||||||
return nil, errors.New("Path " + string(path) + " does not exists.")
|
|
||||||
}
|
|
||||||
props := (object.(map[string]map[string]dbus.Variant))[bluez.Device1Interface]
|
|
||||||
dev, err := bleapi.ParseDevice(path, props)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
devices = append(devices, *dev)
|
|
||||||
}
|
|
||||||
|
|
||||||
return devices, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *BluetoothPage) RefreshDevices() {
|
func (self *BluetoothPage) RefreshDevices() {
|
||||||
@ -719,10 +699,9 @@ func (self *BluetoothPage) GenNetworkList() {
|
|||||||
ni.PosY = start_y + i*NetItemDefaultHeight
|
ni.PosY = start_y + i*NetItemDefaultHeight
|
||||||
ni.Width = UI.Width
|
ni.Width = UI.Width
|
||||||
ni.FontObj = self.ListFontObj
|
ni.FontObj = self.ListFontObj
|
||||||
ni.Path = v.Path
|
|
||||||
ni.Props = props
|
ni.Props = props
|
||||||
ni.Parent = self
|
ni.Parent = self
|
||||||
ni.Device = &v
|
ni.Device = v
|
||||||
if props.Name != "" {
|
if props.Name != "" {
|
||||||
ni.Init(props.Name)
|
ni.Init(props.Name)
|
||||||
}else {
|
}else {
|
||||||
@ -743,18 +722,19 @@ func (self *BluetoothPage) Rescan() {
|
|||||||
self.Scanning = true
|
self.Scanning = true
|
||||||
self.ShowBox("Bluetooth scanning")
|
self.ShowBox("Bluetooth scanning")
|
||||||
self.Screen.FootBar.UpdateNavText("Scanning")
|
self.Screen.FootBar.UpdateNavText("Scanning")
|
||||||
|
a,nil := bleapi.GetAdapter(adapterID)
|
||||||
|
|
||||||
err := bleapi.StopDiscovery()
|
err := a.StopDiscovery()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = bleapi.StartDiscovery()
|
err = a.StartDiscovery()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("Started discovery")
|
fmt.Println("Started discovery")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -821,7 +801,9 @@ func (self *BluetoothPage) KeyDown(ev *event.Event) {
|
|||||||
self.AbortedAndReturnToUpLevel()
|
self.AbortedAndReturnToUpLevel()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err := bleapi.StopDiscovery()
|
|
||||||
|
a, nil := bleapi.GetAdapter(adapterID)
|
||||||
|
err := a.StopDiscovery()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,9 +3,9 @@ package Bluetooth
|
|||||||
import (
|
import (
|
||||||
//"fmt"
|
//"fmt"
|
||||||
|
|
||||||
bleapi "github.com/muka/go-bluetooth/api"
|
//bleapi "github.com/muka/go-bluetooth/api"
|
||||||
"github.com/muka/go-bluetooth/bluez/profile"
|
//"github.com/muka/go-bluetooth/bluez/profile"
|
||||||
//"github.com/muka/go-bluetooth/emitter"
|
"github.com/muka/go-bluetooth/bluez/profile/device"
|
||||||
|
|
||||||
"github.com/veandco/go-sdl2/ttf"
|
"github.com/veandco/go-sdl2/ttf"
|
||||||
"github.com/veandco/go-sdl2/sdl"
|
"github.com/veandco/go-sdl2/sdl"
|
||||||
@ -83,8 +83,8 @@ type NetItem struct {
|
|||||||
MacAddr string //
|
MacAddr string //
|
||||||
Parent *BluetoothPage
|
Parent *BluetoothPage
|
||||||
Path string ///org/bluez/hci0/dev_34_88_5D_97_FF_26
|
Path string ///org/bluez/hci0/dev_34_88_5D_97_FF_26
|
||||||
Props *profile.Device1Properties
|
Props *device.Device1Properties
|
||||||
Device *bleapi.Device
|
Device *device.Device1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,68 +2,72 @@ package Bluetooth
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
// "log"
|
||||||
"os"
|
//"os"
|
||||||
|
"time"
|
||||||
"github.com/muka/go-bluetooth/api"
|
"github.com/godbus/dbus/v5"
|
||||||
"github.com/muka/go-bluetooth/emitter"
|
"github.com/muka/go-bluetooth/api"
|
||||||
"github.com/muka/go-bluetooth/linux/btmgmt"
|
"github.com/muka/go-bluetooth/hw"
|
||||||
"github.com/muka/go-bluetooth/bluez/profile"
|
//"github.com/muka/go-bluetooth/bluez/profile"
|
||||||
|
"github.com/muka/go-bluetooth/bluez/profile/agent"
|
||||||
|
"github.com/muka/go-bluetooth/bluez/profile/adapter"
|
||||||
/*
|
/*
|
||||||
"github.com/veandco/go-sdl2/ttf"
|
"github.com/veandco/go-sdl2/ttf"
|
||||||
|
|
||||||
"github.com/cuu/gogame/surface"
|
"github.com/cuu/gogame/surface"
|
||||||
"github.com/cuu/gogame/event"
|
"github.com/cuu/gogame/event"
|
||||||
"github.com/cuu/gogame/rect"
|
"github.com/cuu/gogame/rect"
|
||||||
"github.com/cuu/gogame/color"
|
"github.com/cuu/gogame/color"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
"github.com/clockworkpi/LauncherGoDev/sysgo/UI"
|
"github.com/clockworkpi/LauncherGoDev/sysgo/UI"
|
||||||
//"github.com/clockworkpi/LauncherGoDev/sysgo/DBUS"
|
//"github.com/clockworkpi/LauncherGoDev/sysgo/DBUS"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
type BluetoothPlugin struct {
|
type BluetoothPlugin struct {
|
||||||
UI.Plugin
|
UI.Plugin
|
||||||
BluetoothPage *BluetoothPage
|
BluetoothPage *BluetoothPage
|
||||||
PairPage *BleAgentPairPage
|
PairPage *BleAgentPairPage
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
adapterID = "hci0"
|
adapterID = "hci0"
|
||||||
BUS_NAME = "org.bluez"
|
BUS_NAME = "org.bluez"
|
||||||
AGENT_INTERFACE = "org.bluez.Agent1"
|
AGENT_INTERFACE = "org.bluez.Agent1"
|
||||||
AGENT_PATH = "/gameshell/bleagentgo"
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
func (self *BluetoothPlugin) InitAgent() {
|
func (self *BluetoothPlugin) InitAgent() {
|
||||||
agent := &Agent{}
|
|
||||||
agent.BusName = BUS_NAME
|
conn, err := dbus.SystemBus()
|
||||||
agent.AgentInterface = AGENT_INTERFACE
|
if err != nil {
|
||||||
agent.AgentPath = AGENT_PATH
|
return
|
||||||
agent.Leader = self
|
}
|
||||||
RegisterAgent(agent, profile.AGENT_CAP_KEYBOARD_DISPLAY)
|
|
||||||
|
ag := agent.NewSimpleAgent()
|
||||||
|
err = agent.ExposeAgent(conn, ag, agent.CapKeyboardDisplay, true)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println( fmt.Errorf("SimpleAgent: %s", err) )
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *BluetoothPlugin) Init( main_screen *UI.MainScreen ) {
|
func (self *BluetoothPlugin) Init( main_screen *UI.MainScreen ) {
|
||||||
|
|
||||||
log.Println("Reset bluetooth device")
|
log.Println("Reset bluetooth device")
|
||||||
|
|
||||||
a := btmgmt.NewBtMgmt(adapterID)
|
btmgmt := hw.NewBtMgmt(adapterID)
|
||||||
err := a.Reset()
|
btmgmt.SetPowered(true)
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
os.Exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
self.BluetoothPage = NewBluetoothPage()
|
self.BluetoothPage = NewBluetoothPage()
|
||||||
self.BluetoothPage.SetScreen( main_screen)
|
self.BluetoothPage.SetScreen( main_screen)
|
||||||
self.BluetoothPage.SetName("Bluetooth")
|
self.BluetoothPage.SetName("Bluetooth")
|
||||||
self.BluetoothPage.Leader = self
|
self.BluetoothPage.Leader = self
|
||||||
self.BluetoothPage.Init()
|
self.BluetoothPage.Init()
|
||||||
|
|
||||||
self.PairPage = NewBleAgentPairPage()
|
self.PairPage = NewBleAgentPairPage()
|
||||||
self.PairPage.SetScreen( main_screen)
|
self.PairPage.SetScreen( main_screen)
|
||||||
@ -73,30 +77,57 @@ func (self *BluetoothPlugin) Init( main_screen *UI.MainScreen ) {
|
|||||||
|
|
||||||
self.InitAgent()
|
self.InitAgent()
|
||||||
|
|
||||||
err = api.On("discovery", emitter.NewCallback(func(ev emitter.Event) {
|
|
||||||
//discoveryEvent := ev.GetData().(api.DiscoveredDeviceEvent)
|
|
||||||
//dev := discoveryEvent.Device
|
|
||||||
//showDeviceInfo(dev)
|
|
||||||
self.BluetoothPage.RefreshDevices()
|
|
||||||
self.BluetoothPage.GenNetworkList()
|
|
||||||
main_screen.Draw()
|
|
||||||
main_screen.SwapAndShow()
|
|
||||||
|
|
||||||
}))
|
|
||||||
|
|
||||||
|
a, err := adapter.GetAdapter(adapterID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
discovery, cancel, err := api.Discover(a, nil)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
defer cancel()
|
||||||
|
|
||||||
|
wait := make(chan error)
|
||||||
|
|
||||||
|
go func() {
|
||||||
|
for dev := range discovery {
|
||||||
|
if dev == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
wait <- nil
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
|
go func() {
|
||||||
|
sleep := 5
|
||||||
|
time.Sleep(time.Duration(sleep) * time.Second)
|
||||||
|
log.Debugf("Discovery timeout exceeded (%ds)", sleep)
|
||||||
|
wait <- nil
|
||||||
|
}()
|
||||||
|
|
||||||
|
err = <-wait
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
self.BluetoothPage.RefreshDevices()
|
||||||
|
self.BluetoothPage.GenNetworkList()
|
||||||
|
main_screen.Draw()
|
||||||
|
main_screen.SwapAndShow()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *BluetoothPlugin) Run( main_screen *UI.MainScreen ) {
|
func (self *BluetoothPlugin) Run( main_screen *UI.MainScreen ) {
|
||||||
if main_screen != nil {
|
if main_screen != nil {
|
||||||
main_screen.PushCurPage()
|
main_screen.PushCurPage()
|
||||||
main_screen.SetCurPage(self.BluetoothPage)
|
main_screen.SetCurPage(self.BluetoothPage)
|
||||||
main_screen.Draw()
|
main_screen.Draw()
|
||||||
main_screen.SwapAndShow()
|
main_screen.SwapAndShow()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var APIOBJ BluetoothPlugin
|
var APIOBJ BluetoothPlugin
|
||||||
|
|||||||
1
Menu/GameShell/GameShell.go
Normal file
1
Menu/GameShell/GameShell.go
Normal file
@ -0,0 +1 @@
|
|||||||
|
package GameShell
|
||||||
1
Menu/Menu.go
Normal file
1
Menu/Menu.go
Normal file
@ -0,0 +1 @@
|
|||||||
|
package Menu
|
||||||
27
go.mod
Normal file
27
go.mod
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
module github.com/clockworkpi/LauncherGoDev
|
||||||
|
|
||||||
|
go 1.17
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/cuu/gogame v0.0.0-20190505155707-d04617ab9826
|
||||||
|
github.com/cuu/grab v2.0.0+incompatible
|
||||||
|
github.com/fatih/structs v1.1.0
|
||||||
|
github.com/go-ini/ini v1.63.2
|
||||||
|
github.com/godbus/dbus v4.1.0+incompatible
|
||||||
|
github.com/itchyny/volume-go v0.2.1
|
||||||
|
github.com/mitchellh/go-homedir v1.1.0
|
||||||
|
github.com/muka/go-bluetooth v0.0.0-20210812063148-b6c83362e27d
|
||||||
|
github.com/veandco/go-sdl2 v0.4.10
|
||||||
|
github.com/vjeantet/jodaTime v1.0.0
|
||||||
|
github.com/yookoala/realpath v1.0.0
|
||||||
|
)
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/go-ole/go-ole v1.2.4 // indirect
|
||||||
|
github.com/godbus/dbus/v5 v5.0.3 // indirect
|
||||||
|
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
|
||||||
|
github.com/moutend/go-wca v0.2.0 // indirect
|
||||||
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
|
github.com/sirupsen/logrus v1.6.0 // indirect
|
||||||
|
golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1 // indirect
|
||||||
|
)
|
||||||
80
go.sum
Normal file
80
go.sum
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
github.com/cuu/gogame v0.0.0-20190505155707-d04617ab9826 h1:B+Oxj2/n+1coaS1IIZFzF++vENubxaXMSS7O2YqZCbY=
|
||||||
|
github.com/cuu/gogame v0.0.0-20190505155707-d04617ab9826/go.mod h1:gCpgs2cddW1XU/owVN8IeY6PhPOsvj2qhXFduLhSgDc=
|
||||||
|
github.com/cuu/grab v2.0.0+incompatible h1:iXzIujTt9fYkjw63Tlxyxw1ohvabE59jWgkzI4LUY6E=
|
||||||
|
github.com/cuu/grab v2.0.0+incompatible/go.mod h1:FQIc8xU5/Uw5lfVeVv4hrrclKgc+6c0ALOYVaTS+R20=
|
||||||
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
|
github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo=
|
||||||
|
github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
|
||||||
|
github.com/go-ini/ini v1.63.2 h1:kwN3umicd2HF3Tgvap4um1ZG52/WyKT9GGdPx0CJk6Y=
|
||||||
|
github.com/go-ini/ini v1.63.2/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8=
|
||||||
|
github.com/go-ole/go-ole v1.2.4 h1:nNBDSCOigTSiarFpYE9J/KtEA1IOW4CNeqT9TQDqCxI=
|
||||||
|
github.com/go-ole/go-ole v1.2.4/go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM=
|
||||||
|
github.com/godbus/dbus v4.1.0+incompatible h1:WqqLRTsQic3apZUK9qC5sGNfXthmPXzUZ7nQPrNITa4=
|
||||||
|
github.com/godbus/dbus v4.1.0+incompatible/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw=
|
||||||
|
github.com/godbus/dbus/v5 v5.0.3 h1:ZqHaoEF7TBzh4jzPmqVhE/5A1z9of6orkAe5uHoAeME=
|
||||||
|
github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||||
|
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
|
github.com/itchyny/volume-go v0.2.1 h1:NiVdnIp3dyCBnygQoBLV9ecAk7Vk4KHfiZFJGvCCIm0=
|
||||||
|
github.com/itchyny/volume-go v0.2.1/go.mod h1:YdvjyTIcPXyGcckaIHTfga+ItdhGZQoWhzOORajlkkE=
|
||||||
|
github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8=
|
||||||
|
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||||
|
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||||
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
|
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
|
||||||
|
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
||||||
|
github.com/moutend/go-wca v0.2.0 h1:AEzY6ltC5zPCldKyMYdyXv3TaLqwxSW1TIradqNqRpU=
|
||||||
|
github.com/moutend/go-wca v0.2.0/go.mod h1:L/ka++dPvkHYz0UuQ/PIQ3aTuecoXOIM1RSAesh6RYU=
|
||||||
|
github.com/muka/go-bluetooth v0.0.0-20210812063148-b6c83362e27d h1:EG/xyWjHT19rkUpwsWSkyiCCmyqNwFovr9m10rhyOxU=
|
||||||
|
github.com/muka/go-bluetooth v0.0.0-20210812063148-b6c83362e27d/go.mod h1:dMCjicU6vRBk34dqOmIZm0aod6gUwZXOXzBROqGous0=
|
||||||
|
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
|
||||||
|
github.com/paypal/gatt v0.0.0-20151011220935-4ae819d591cf/go.mod h1:+AwQL2mK3Pd3S+TUwg0tYQjid0q1txyNUJuuSmz8Kdk=
|
||||||
|
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||||
|
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
|
github.com/sirupsen/logrus v1.6.0 h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I=
|
||||||
|
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
|
||||||
|
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
|
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
|
||||||
|
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||||
|
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||||
|
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||||
|
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
|
||||||
|
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
|
github.com/suapapa/go_eddystone v1.3.1/go.mod h1:bXC11TfJOS+3g3q/Uzd7FKd5g62STQEfeEIhcKe4Qy8=
|
||||||
|
github.com/veandco/go-sdl2 v0.4.10 h1:8QoD2bhWl7SbQDflIAUYWfl9Vq+mT8/boJFAUzAScgY=
|
||||||
|
github.com/veandco/go-sdl2 v0.4.10/go.mod h1:OROqMhHD43nT4/i9crJukyVecjPNYYuCofep6SNiAjY=
|
||||||
|
github.com/vjeantet/jodaTime v1.0.0 h1:Fq2K9UCsbTFtKbHpe/L7C57XnSgbZ5z+gyGpn7cTE3s=
|
||||||
|
github.com/vjeantet/jodaTime v1.0.0/go.mod h1:gA+i8InPfZxL1ToHaDpzi6QT/npjl3uPlcV4cxDNerI=
|
||||||
|
github.com/yookoala/realpath v1.0.0 h1:7OA9pj4FZd+oZDsyvXWQvjn5oBdcHRTV44PpdMSuImQ=
|
||||||
|
github.com/yookoala/realpath v1.0.0/go.mod h1:gJJMA9wuX7AcqLy1+ffPatSCySA1FQ2S8Ya9AIoYBpE=
|
||||||
|
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
|
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||||
|
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
|
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
|
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
|
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1 h1:sIky/MyNRSHTrdxfsiUSS4WIAMvInbeXljJz+jDjeYE=
|
||||||
|
golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
|
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20200925191224-5d1fdd8fa346/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
||||||
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
|
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
Loading…
x
Reference in New Issue
Block a user