Skip to content

Commit

Permalink
remove unnecessary public types
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Aug 19, 2020
1 parent 5b1fc27 commit 6ab3c41
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ centrifuge-sources.jar
centrifuge.aar
BUILDS/
vendor/
.idea
.vscode
2 changes: 0 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
// Client to connect to Centrifuge-based server or Centrifugo.
type Client struct {
client *gocentrifuge.Client
events *EventHub
}

// Config defaults.
Expand Down Expand Up @@ -48,7 +47,6 @@ func New(u string, config *Config) *Client {
}
client := &Client{
client: gocentrifuge.New(u, c),
events: NewEventHub(),
}
return client
}
Expand Down
30 changes: 0 additions & 30 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,6 @@ type ErrorHandler interface {
OnError(*Client, *ErrorEvent)
}

// EventHub ...
type EventHub struct {
client *Client
eventHub *gocentrifuge.EventHub
}

// NewEventHub ...
func NewEventHub() *EventHub {
return &EventHub{}
}

func (h *EventHub) setClient(c *Client) {
h.client = c
}

type eventProxy struct {
client *Client

Expand Down Expand Up @@ -248,21 +233,6 @@ type SubscribeErrorHandler interface {
OnSubscribeError(*Subscription, *SubscribeErrorEvent)
}

// SubscriptionEventHub ...
type SubscriptionEventHub struct {
sub *Subscription
subEventHub *gocentrifuge.SubscriptionEventHub
}

// NewSubscriptionEventHub initializes new SubscriptionEventHub.
func NewSubscriptionEventHub() *SubscriptionEventHub {
return &SubscriptionEventHub{}
}

func (h *SubscriptionEventHub) setSub(s *Subscription) {
h.sub = s
}

type subEventProxy struct {
sub *Subscription

Expand Down

0 comments on commit 6ab3c41

Please sign in to comment.