Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit 05c088f

Browse files
committed
Fix golint issues
1 parent 3c51d0b commit 05c088f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

app/webhooks.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func newClientHook(channel *channel.Channel, s *subscription.Subscription, event
7474
return hookEvent{Name: "client_event", Channel: channel.ID, Event: event, Data: data, SocketID: s.Connection.SocketID}
7575
}
7676

77-
// channel_occupied
77+
// TriggerChannelOccupiedHook channel_occupied
7878
// { "name": "channel_occupied", "channel": "test_channel" }
7979
func (a *Application) TriggerChannelOccupiedHook(c *channel.Channel) {
8080
event := newChannelOcuppiedHook(c)

channel/channel.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type ListenerFunc func(*Channel, *subscription.Subscription)
2727
// ClientEventListenerFunc listener for client events
2828
type ClientEventListenerFunc func(*Channel, *subscription.Subscription, string, interface{})
2929

30-
// A Channel
30+
// Channel represents an application channel
3131
type Channel struct {
3232
sync.RWMutex
3333

@@ -43,7 +43,7 @@ type Channel struct {
4343
clientEventListeners []ClientEventListenerFunc
4444
}
4545

46-
// Create a new Channel
46+
// New Create a new Channel
4747
func New(channelID string, options ...Option) *Channel {
4848
log.Infof("Creating a new Channel: %s", channelID)
4949

events/events.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func NewSubscribe(channel, auth, channelData string) Subscribe {
3939
return Subscribe{Event: "pusher:subscribe", Data: data}
4040
}
4141

42-
// UnsubscribeData
42+
// UnsubscribeData event data
4343
type UnsubscribeData struct {
4444
Channel string `json:"channel"`
4545
}
@@ -56,7 +56,7 @@ type Unsubscribe struct {
5656
Data UnsubscribeData `json:"data"`
5757
}
5858

59-
// Create a new unsubscribe event for the specified channel
59+
// NewUnsubscribe Create a new unsubscribe event for the specified channel
6060
func NewUnsubscribe(channel string) Unsubscribe {
6161
data := UnsubscribeData{Channel: channel}
6262
return Unsubscribe{Event: "pusher:unsubscribe", Data: data}
@@ -73,7 +73,7 @@ type SubscriptionSucceeded struct {
7373
Data string `json:"data"`
7474
}
7575

76-
// Create a new subscription succeed event for the specified channel
76+
// NewSubscriptionSucceeded Create a new subscription succeed event for the specified channel
7777
func NewSubscriptionSucceeded(channel, data string) SubscriptionSucceeded {
7878
return SubscriptionSucceeded{Event: "pusher_internal:subscription_succeeded", Channel: channel, Data: data}
7979
}

storage/storage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"sync"
1111
)
1212

13-
// storage represents a app database
13+
// Storage represents a app database
1414
// For now it there is only one memory database implementation
1515
// but in the future I can write a sql implementation
1616
type Storage interface {

0 commit comments

Comments
 (0)