From 26a65e1c175fa9b580f830299228e8026397efa0 Mon Sep 17 00:00:00 2001 From: Benjamin Wenger <ben@elixxir.ioo> Date: Mon, 11 Apr 2022 10:39:34 -0700 Subject: [PATCH] started woprking on API --- api/client.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/api/client.go b/api/client.go index 80c74db6a..85894ca42 100644 --- a/api/client.go +++ b/api/client.go @@ -17,14 +17,10 @@ import ( keyExchange2 "gitlab.com/elixxir/client/e2e/rekey" "gitlab.com/elixxir/client/event" "gitlab.com/elixxir/client/interfaces" - "gitlab.com/elixxir/client/interfaces/params" - "gitlab.com/elixxir/client/interfaces/preimage" "gitlab.com/elixxir/client/interfaces/user" "gitlab.com/elixxir/client/registration" "gitlab.com/elixxir/client/stoppable" "gitlab.com/elixxir/client/storage" - "gitlab.com/elixxir/client/storage/edge" - "gitlab.com/elixxir/client/switchboard" "gitlab.com/elixxir/comms/client" "gitlab.com/elixxir/crypto/backup" "gitlab.com/elixxir/crypto/cyclic" @@ -49,12 +45,10 @@ type Client struct { // the storage session securely stores data to disk and memoizes as is // appropriate storage *storage.Session - //the switchboard is used for inter-process signaling about received messages - switchboard *switchboard.Switchboard //object used for communications comms *client.Comms // Network parameters - parameters params.Network + parameters cmix.Params // note that the manager has a pointer to the context in many cases, but // this interface allows it to be mocked for easy testing without the @@ -63,7 +57,7 @@ type Client struct { //object used to register and communicate with permissioning permissioning *registration.Registration //object containing auth interactions - auth *auth.state + auth *auth.State //services system to track running threads followerServices *services @@ -71,7 +65,7 @@ type Client struct { clientErrorChannel chan interfaces.ClientError // Event reporting in event.go - events *event.eventManager + events *event.Manager // Handles the triggering and delivery of backups backup *interfaces.BackupContainer -- GitLab