Réception d'un fichier et sauvegarde de celui-ci terminée

This commit is contained in:
Benjamin
2022-03-08 20:37:49 +01:00
parent a987a7eb64
commit 6fa5f6c1c4
7 changed files with 53 additions and 22 deletions

View File

@@ -2,14 +2,14 @@ package managers
import (
"StoreBackEnd/pkg/protocol/repository"
"net"
"bufio"
)
type RequestManager struct {
Repository *repository.ProtocolRepository
}
func (receiver RequestManager) Execute(request string, reader net.Conn) string {
func (receiver RequestManager) Execute(request string, reader *bufio.Reader) string {
// On lis ce que l'on reçoit
result, executed, readCb := receiver.Repository.ExecuteReader(request)