summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-06-05 23:18:13 +0200
committerWim <wim@42.be>2017-06-05 23:18:13 +0200
commit2eecaccd1c77e8990a80e6b4b6ad6b13a9c95896 (patch)
tree3995097ca4f64e87fb264ed11a7d2393716a8128
parent5f30a98bc14da749dc4e96263b6aba9bbbdca114 (diff)
downloadmatterbridge-msglm-2eecaccd1c77e8990a80e6b4b6ad6b13a9c95896.tar.gz
matterbridge-msglm-2eecaccd1c77e8990a80e6b4b6ad6b13a9c95896.tar.bz2
matterbridge-msglm-2eecaccd1c77e8990a80e6b4b6ad6b13a9c95896.zip
Change to lowercase JSON keys (api)
-rw-r--r--bridge/config/config.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go
index ac003070..172cb109 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -16,15 +16,15 @@ const (
)
type Message struct {
- Text string
- Channel string
- Username string
- Avatar string
- Account string
- Event string
- Protocol string
- Gateway string
- Timestamp time.Time
+ Text string `json:"text"`
+ Channel string `json:"channel"`
+ Username string `json:"username"`
+ Avatar string `json:"avatar"`
+ Account string `json:"account"`
+ Event string `json:"event"`
+ Protocol string `json:"protocol"`
+ Gateway string `json:"gateway"`
+ Timestamp time.Time `json:"timestamp"`
}
type ChannelInfo struct {