Better file organization.

Moved connection and channel types for its own files.
This commit is contained in:
claudemiro
2015-01-17 19:58:46 -03:00
parent b93da8ccc8
commit d1473197b8
4 changed files with 49 additions and 35 deletions
+17
View File
@@ -0,0 +1,17 @@
// Copyright 2014 Claudemiro Alves Feitosa Neto. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package main
// A Channel Subscription
type Subscription struct {
Connection *Connection
Id string
Data string
}
// Create a new Subscription
func NewSubscription(conn *Connection, data string) *Subscription {
return &Subscription{Connection: conn, Data: data}
}