summaryrefslogtreecommitdiffstats
path: root/matterhook/matterhook.go
diff options
context:
space:
mode:
authorDuco van Amstel <duco.vanamstel@gmail.com>2018-11-15 19:43:43 +0000
committerWim <wim@42.be>2018-11-15 20:43:43 +0100
commitce21ba154585395e792c059ac156299071405247 (patch)
treef76f4617cc2c099a9a2e97bc85fce28cf04010b1 /matterhook/matterhook.go
parentc89085bf44333b4decd75e30cec5849dca859938 (diff)
downloadmatterbridge-msglm-ce21ba154585395e792c059ac156299071405247.tar.gz
matterbridge-msglm-ce21ba154585395e792c059ac156299071405247.tar.bz2
matterbridge-msglm-ce21ba154585395e792c059ac156299071405247.zip
Fix golint linter issues and enable it in CI (#593)
Diffstat (limited to 'matterhook/matterhook.go')
-rw-r--r--matterhook/matterhook.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/matterhook/matterhook.go b/matterhook/matterhook.go
index 9287baa9..f602ed44 100644
--- a/matterhook/matterhook.go
+++ b/matterhook/matterhook.go
@@ -41,9 +41,9 @@ type IMessage struct {
Timestamp string `schema:"timestamp"`
UserID string `schema:"user_id"`
UserName string `schema:"user_name"`
- PostId string `schema:"post_id"`
+ PostId string `schema:"post_id"` //nolint:golint
RawText string `schema:"raw_text"`
- ServiceId string `schema:"service_id"`
+ ServiceId string `schema:"service_id"` //nolint:golint
Text string `schema:"text"`
TriggerWord string `schema:"trigger_word"`
FileIDs string `schema:"file_ids"`
@@ -51,7 +51,8 @@ type IMessage struct {
// Client for Mattermost.
type Client struct {
- Url string // URL for incoming webhooks on mattermost.
+ // URL for incoming webhooks on mattermost.
+ Url string // nolint:golint
In chan IMessage
Out chan OMessage
httpclient *http.Client