connector interface

This commit is contained in:
IliaDenisov
2026-03-10 17:01:47 +02:00
parent dabe1f091a
commit 2dafa69b93
3 changed files with 20 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
package client
import (
"galaxy/model/report"
)
type Connector interface {
Turn(uint, func(report.Report, error)) error
}
+9
View File
@@ -0,0 +1,9 @@
package http
type httpConnector struct {
}
func NewHttpConnector() *httpConnector {
h := &httpConnector{}
return h
}
+2 -2
View File
@@ -3,7 +3,7 @@ package report
import (
"encoding/json"
n "galaxy/util"
u "galaxy/util"
"github.com/google/uuid"
)
@@ -11,7 +11,7 @@ import (
type Float float64
func F(v float64) Float {
return Float(n.Fixed3(v))
return Float(u.Fixed3(v))
}
type Report struct {