From fdc18e30cbe606527101085ab04c00d5a8e724ec Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 23 Jun 2022 11:26:42 +0200 Subject: [PATCH] config/config.go: Adding name field --- config.example.json | 1 + config/config.go | 1 + 2 files changed, 2 insertions(+) diff --git a/config.example.json b/config.example.json index 2ccbb8e..ffb03f8 100644 --- a/config.example.json +++ b/config.example.json @@ -1,4 +1,5 @@ { + "name": "ship-reader-1", "api": "http://127.0.0.1:8080", "ship_api": "127.0.0.1:8089", "irreversible_only": false, diff --git a/config/config.go b/config/config.go index 1d4de54..f94b1b7 100644 --- a/config/config.go +++ b/config/config.go @@ -16,6 +16,7 @@ type RedisConfig struct { } type Config struct { + Name string `json:"name"` ShipApi string `json:"ship_api"` Api string `json:"api"`