1
0
Fork 0

Hub draft

This commit is contained in:
Gregory Eremin 2014-09-10 15:44:38 +04:00
parent b2dbf856fa
commit 601a80fb8e
1 changed files with 27 additions and 0 deletions

27
hub/hub.go Normal file
View File

@ -0,0 +1,27 @@
package hub
import (
"code.google.com/p/go.net/context"
"github.com/KosyanMedia/burlesque/storage"
)
type (
Hub struct {
storage *storage.Storage
subscribers []*context.Context
}
)
func New() (h *Hub) {
h = Hub{}
return
}
func (h *Hub) Pub(ctx context.Context) context.Context {
return ctx
}
func (h *Hub) Sub(ctx context.Context) context.Context {
return ctx
}