Fixed spelling mistake in project name, restructuring. Correction of Golang convention error.
This commit is contained in:
@@ -8,7 +8,7 @@ type AppConfig struct {
|
||||
// multicastSecond Contient le nombre de seconde entre chaque annonce
|
||||
MulticastSecond int `json:"multicastSecond"`
|
||||
|
||||
// domain Domain du StorBackEnd
|
||||
// domain Domain du StoreBackEnd
|
||||
Domain string `json:"domain"`
|
||||
|
||||
// unicastPort Contient le port unicast auquel le FileFrontEnd se connecte
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package network
|
||||
|
||||
import (
|
||||
"StorBackEnd/pkg/protocol/repository"
|
||||
"StorBackEnd/pkg/protocol/rules/writers"
|
||||
"StoreBackEnd/pkg/protocol/repository"
|
||||
"StoreBackEnd/pkg/protocol/rules/writers"
|
||||
"fmt"
|
||||
"net"
|
||||
"time"
|
||||
@@ -25,7 +25,7 @@ type ClientMulticast struct {
|
||||
// address Adresse de multicast
|
||||
address string
|
||||
|
||||
// address Domain de du StorBackEnd
|
||||
// address Domain de du StoreBackEnd
|
||||
domain string
|
||||
|
||||
// port Port de connexion en unicast
|
||||
@@ -57,7 +57,7 @@ func (cMult ClientMulticast) Run() {
|
||||
}
|
||||
|
||||
for {
|
||||
con.Write([]byte(cmd))
|
||||
_, _ = con.Write([]byte(cmd))
|
||||
time.Sleep(time.Second * cMult.second)
|
||||
}
|
||||
|
||||
@@ -71,7 +71,6 @@ func (cMult ClientMulticast) ResolveAddr() (*net.UDPAddr, bool) {
|
||||
println(errResUdp.Error())
|
||||
return nil, true
|
||||
}
|
||||
|
||||
return addr, false
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package network
|
||||
|
||||
import (
|
||||
"StorBackEnd/pkg/protocol/managers"
|
||||
"StoreBackEnd/pkg/protocol/managers"
|
||||
"bufio"
|
||||
"fmt"
|
||||
"net"
|
||||
@@ -36,7 +36,7 @@ func (server ServerUnicast) Run() {
|
||||
}
|
||||
|
||||
result := server.ReqManager.Execute(line)
|
||||
con.Write(append([]byte(result), '\n')) // TODO : ATTENTION laisser les \n
|
||||
_, _ = con.Write(append([]byte(result), '\n')) // TODO : ATTENTION laisser les \n
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package managers
|
||||
|
||||
import "StorBackEnd/pkg/protocol/repository"
|
||||
import "StoreBackEnd/pkg/protocol/repository"
|
||||
|
||||
type RequestManager struct {
|
||||
Repository *repository.ProtocolRepository
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package repository
|
||||
|
||||
import "StorBackEnd/pkg/protocol"
|
||||
import "StoreBackEnd/pkg/protocol"
|
||||
|
||||
func CreateProtocolRepository() *ProtocolRepository {
|
||||
return &ProtocolRepository{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package readers
|
||||
|
||||
import "StorBackEnd/pkg/protocol"
|
||||
import "StoreBackEnd/pkg/protocol"
|
||||
|
||||
// EraseFileRuleName Identifiant de cette règle
|
||||
const EraseFileRuleName = "ffe_erasefile"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package writers
|
||||
|
||||
import "StorBackEnd/pkg/protocol"
|
||||
import "StoreBackEnd/pkg/protocol"
|
||||
|
||||
const HelloRuleName = "sbe_hello"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user