mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-26 01:49:22 +00:00
Fix golint linter issues and enable it in CI (#593)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user