connector interface
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"galaxy/model/report"
|
||||
)
|
||||
|
||||
type Connector interface {
|
||||
Turn(uint, func(report.Report, error)) error
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package http
|
||||
|
||||
type httpConnector struct {
|
||||
}
|
||||
|
||||
func NewHttpConnector() *httpConnector {
|
||||
h := &httpConnector{}
|
||||
return h
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user