From 2fa2eb7e86fed6cc0b760d55d7323b92eab8641a Mon Sep 17 00:00:00 2001 From: "Frederic G. MARAND" Date: Mon, 24 May 2021 10:43:11 +0200 Subject: [PATCH 1/3] Issue #4: converted to Wire DI. --- .idea/runConfigurations/Clean.xml | 8 ++++ .idea/runConfigurations/Run.xml | 2 +- Makefile | 36 +++++++++++++++-- auth.go => credentials.go | 34 ++++++---------- auth_test.go => credentials_test.go | 28 ++++++++------ go.mod | 4 +- go.sum | 12 +++++- drupal_redis_stats.go => main.go | 60 +++++++++++++---------------- main_test.go | 2 +- output/output.go | 2 +- redis.go | 45 ++++++++++++++++++++++ wire.go | 14 +++++++ wire_gen.go | 24 ++++++++++++ 13 files changed, 194 insertions(+), 77 deletions(-) create mode 100644 .idea/runConfigurations/Clean.xml rename auth.go => credentials.go (76%) rename auth_test.go => credentials_test.go (93%) rename drupal_redis_stats.go => main.go (53%) create mode 100644 redis.go create mode 100644 wire.go create mode 100644 wire_gen.go diff --git a/.idea/runConfigurations/Clean.xml b/.idea/runConfigurations/Clean.xml new file mode 100644 index 0000000..5ba1469 --- /dev/null +++ b/.idea/runConfigurations/Clean.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Run.xml b/.idea/runConfigurations/Run.xml index 8bbc776..151df8e 100644 --- a/.idea/runConfigurations/Run.xml +++ b/.idea/runConfigurations/Run.xml @@ -2,7 +2,7 @@ - +